@w33bletools/simpleutils
v3.0.0
Published
simple utilities, no dependencies
Downloads
4
Readme
simpleutils
simple utilities, no dependencies
Usage
isArray(value)
Returns true or false, depending on the value being an array
isPlainObject(value)
Returns true or false, depending on the value being a plain object
isFunction(value)
Returns true or false, depending on the value being a function
isString(value)
Returns true or false, depending on the value being an string
isSymbol(value)
Returns true or false, depending on the value being a symbol
identity(value)
Returns function the value passed in as the first argument
pick(obj, fields)
Given an object and array of fields, returns an object containing all the keys in the fields array
omit(obj, fields)
Given an object and array of fields, returns an object missing all the keys in the fields array