Return the last element in an array. Faster than `.slice`
- array
- last
- javascript
- nodejs
132,241 visible repositories in the index
25–30 of 30 · Most stars
Return the last element in an array. Faster than `.slice`
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
Get the first element or first n elements of an array.
Bind a context to all functions in an object, including deeply nested functions.