1.0.0 • Published 3 years ago
@young_jack/lotide v1.0.0
Lotide
A mini clone of the Lodash library.
Purpose
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.
Usage
Install it:
npm install @young_jack/lotide
Require it:
const _ = require('@young_jack/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function head
: function for returning head value of an array (first index from array)function tail
: function for returning tail values of an array (all indicies, other than first index, from array)function middle
: function for returning middle value(s) of an array (index/indicies at middle from arrary)function countLetters
: function for counting number of letters within arrayfunction counOnly
: function for counting number of certain value(s) within objectfunction eqArrays
: function for identifying if arrays are equal to each otherfunction eqObjects
: function for identifying if objects are equal to each otherfunction findKey
: fuction for finding key within object (if exist, otherwise undefined)function findKeyByValue
: function for finding name of keys by valuefunction letterPosition
: function for returning indicies of letters from stringfunction map
: function for returning array of first index of values from input arrayfunction takeUntil
: function for returning all values of array until conditional meetsfunction without
: function for returning new array without arguments from original array
1.0.0
3 years ago