1.0.0 • Published 3 years ago
@shafsaud/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 @shafsaud/lotide
Require it:
const _ = require('@shafsaud/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head): To find first element in an arrayfunction2(tail): To find last elements in an arrayfunction3(middle):To find mid of an arrayfunction4(without): Funtion filteroutfunction5(takeUntil): descriptionfunction6(map): Function to mapfunction7(flatten): Function to flat an objectfunction8(letterPositions): Find position of a letterfunction9(findKey): Find by key in an objectfunction10(countOnly): Function to countfunction11(countLetter): To count letters in a stringfunction12(assertObjectsEqual): A function for assertion and testing.function13(assertArraysEqual): A function for assertion and testing.function14(assertEqual): A function for assertion and testing.function15(eqObjects): A function for assertion and testing.function15(eqArrays): A function for assertion and testing.
1.0.0
3 years ago