A lightweight modular tool library.
Support for browsers and Node.js
isArray(arr)
:Boolean
isBoolean(bool)
:Boolean
isFunction(fn)
:Boolean
isNull(val)
:Boolean
isNumber(num)
:Boolean
isObject(obj)
:Boolean
isRegExp(reg)
:Boolean
isString(str)
:Boolean
type(val)
:String
isInteger(num)
:Boolean
isNaN(num)
:Boolean
isSafeInteger(num)
:Boolean
random(min, max, isFloat)
:Number
covertRadix(num, fromRadix, toRadix)
:String
chunk(arr, [values])
:Array
compact(arr)
:Array
difference
🚧forEach(arr, handler)
:undefined
map(arr, handler)
:Array
identity
:*
constant
:Function
var object = { 'a': 1 };
console.log(identity(object) === object);
// => true
Return Function
times(3, String);
// => ['0', '1', '2']
times(4, _.constant(0));
// => [0, 0, 0, 0]
times
: ``
encodeBase64(str)
:String
decodeBase64(str)
:String
md5
:String