lowerdash - ES6
My mixins for Lodash, formerly known as hidash.
peerDependency
Now available as ES6 style module and use lodash as Lowerdash provides the following methods:
Function
straitjacket (fn Function, Mixed defaultValue)
Returns a new function that tries to invoke passed fn
and return defaultValue
otherwise.
; var straitjacketed = ; ;// -> 'Not found'
Array
closest
Compares passed value to passed array values and return the closest.
;;// -> 10
arry (any Mixed)
Returns an array from any
array-like. If passed any
is not array-like,
returns a new array containing the any
element.
;;// -> [1, 2, 3] ;// -> [1] { return ; // -> [a, b, c]}
insertAt
gluten
penultimate
replaceAt
Object
keyOf
norris
Array & Object
Painless async series without promise.
eachAsync
eachDelayed
eachParallel
Deeper
Set/get/erase Object properties from path
getFromPath
setFromPath
eraseFromPath
Usage
Node environment
npm install lowerdash
Then in your scripts:
// require lowerdashvar _ = ; // or require lowerdashed lodashvar _ = ;
Browser environment
bower install lowerdash
Then include these files into your documents