A mini clone of the Lodash library.
BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.
This project was created and published by me as part of my learnings at Lighthouse Labs.
Install it:
npm install @alon.codes/lotide
Require it:
const _ = require('@alon.codes/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
The following functions are currently implemented:
- If a key in the object has value
true
, the function counts how many times the key occurs in the array. - If a key in the object has value
false
, the function ignores the key.
- If no value with that callback function is found, then it should return undefined.
- If no key with that given value is found, then it should return undefined.
Returns the index positions of every letter in a sentence while ignoring spaces and non-letter characters
- If array has odd number of values returns the middle one.
- If array has even number of values returns the two closest to the middle.
- If array has 2 or fewer values, returns blank array [].
- Returns a blank array [] if there are fewer than 2 values.