Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@jolduca/lotide
Advanced tools
Readme
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 @jolduca/lotide
Require it:
const _ = require('@jolduca/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
The following functions are currently implemented:
head(...)
: gets the first element of an arraytail(...)
: gets everything BUT the first element of an arraymiddle(...)
: gets the middle of odd and even arrayscountLetters(...)
: counts the amount of chars in a stringletterPositions(...)
: Gets the positions of every letter of a string and returns an objectcountOnly(...)
: Goes through an array of strings and counts only desired stringsflatten(...)
: takes an array of elements and arrays and returns 1 total array containing all elementswithout(...)
: takes an array source and array of elements to remove from source. returns a copy of source array without elements from 2nd arraytakeUntil(...)
: takes an array and callback. Goes through array and sends each item to the callback. if callback returns false, adds element to an array. Otherwise, if returns true, will stop and return array of items that returned false upto that pointmap(...)
: Returns an array after manipulating each element using the provided callbackfindKeyByValue(...)
: takes an object and finds the first key that has the same value as providedfindKey(...)
: takes an object and finds the first key that is the same as providedeqObjects(...)
: takes two objects and returns if they are the same or not.eqArrays(...)
: takes two arrays and returns if they are the same or not.FAQs
A recreation of lodash for learning purposes
The npm package @jolduca/lotide receives a total of 1 weekly downloads. As such, @jolduca/lotide popularity was classified as not popular.
We found that @jolduca/lotide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.