1.0.0 • Published 4 years ago
@iezike/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, Ikenna, as part of my learnings at Lighthouse Labs.
Usage
Install it:
npm install @iezike/lotide
Require it:
const _ = require('@iezike/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head): description: outputs the first element in an array.function2(tail): description: removes first element from an array and outputs the reminder array.function3(middle): description: Outputs an array with the middle element(s)function3(assertEqual): description: Returns either true of false where values matchfunction3(assertArraysEqual): description: Returns either true of false where arrays matchfunction3(assertObjectsEqual): description: Returns either true of false where objects matchfunction3(countLetters): description: Counts the numbers of letters in a stringfunction3(countOnly): descriptionfunction3(eqArrays): descriptionfunction3(findKeyByValue: description: Returns the key whose value matches a given value.function3(letterPositions): descriptionfunction3(map): descriptionfunction3(takeUntil): description: Creates a new array from a given array until a given conditions failsfunction3(without): description
1.0.0
4 years ago