A package with functions for example, sum 2 numbers
A lodash ripoff
I just reialized that functionKit is a lodash ripoff!
npm i functionkit
or
npm install functionkit
import { sum, subtract, greet, divide } from 'functionKit';
// Greeter
console.log(greet('Shehab'));
// Hello Shehab
// Custom Greeting
console.log(greet('Shehab', 'Welcome back,'));
// Welcome back, Shehab
// Math
// sum (add)
console.log(sum([1, 1]));
// 2
// Same as: 1 + 1
// subtract (the opposite of sum)
console.log(subtract(1, 3));
// 3
// Same as: 1 - 3
// Divide (i can't simplify it.)
console.log(divide(55, 11));
// 5
// Same as: 55 / 11
For more documentation, head over to shahoob.github.io/functionKit
The currect progress
The completed progress (or the goal)
If should return a string
Cleans your array from falsy values
Any array you want
Get the largest number in an array
A number array
Just like the max function, reversed.
Get the smallest number in an array
A number array
If you know python, You know what it is for.
Creates a range of numbers
const onetoten = range(1, 10);
The starting number (a.k.a 'start')
The ending number (a.k.a 'stop')
How many steps to take (a.k.a 'step')
Generated using TypeDoc
Calculates a percent
2.0.0