1.0.0 • Published 4 years ago

@cliffgreene/lotide v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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. Some of it's function don't work as this isn't being formally evaluated and lighthouse labs works us 12 hours a day, any chance I have to do the bare minimum is an opportunity to save time that can be used for more fun things. The eqObject function worked very well after I spent half a day creating it. Now it's broken. I don't feel like debugging it. This project was created and published by me as part of my learnings at Lighthouse Labs.

Usage

Install it: (but don't, actually)

npm install @cliffgreene/lotide

Require it:

const _ = require('@cliffgreene/lotide');

Call it:

const results = _.tail([1, 2, 3]) // => [2, 3]

Documentation

I'm afraid I'm also not going to spend time describing any of these functions, since they can't be depended on to actually do what they're supposed to:

head, tail, middle, assertArraysEqual, assertEqual, countLetters, countOnly, eqArrays, eqObjects, findKey, findKeybyValue, flatten, letterPositions, map, takeUntil

This is my solemn promise that if I ever create a NPM I can be proud of I WILL fill out the function descriptions.