@samirabanihassan/lotide
v1.0.0
Published
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600 {\fonttbl\f0\fnil\fcharset0 Monaco;\f1\fnil\fcharset0 HelveticaNeue;} {\colortbl;\red255\green255\blue255;\red246\green246\blue239;\red29\green30\blue26;\red246\green246\blue239; \red29\green30\blue26;\r
Downloads
1
Readme
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600 {\fonttbl\f0\fnil\fcharset0 Monaco;\f1\fnil\fcharset0 HelveticaNeue;} {\colortbl;\red255\green255\blue255;\red246\green246\blue239;\red29\green30\blue26;\red246\green246\blue239; \red29\green30\blue26;\red39\green196\blue105;} {*\expandedcolortbl;;\cssrgb\c97255\c97255\c94902;\cssrgb\c15294\c15686\c13333;\cssrgb\c97255\c97255\c94902; \cssrgb\c15294\c15686\c13333;\cssrgb\c14902\c79608\c48627;} \margl1440\margr1440\vieww28300\viewh17700\viewkind0 \deftab720 \pard\pardeftab720\sl400\partightenfactor0
\f0\fs26\fsmilli13440 \cf2 \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 # 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 @
\fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 samirabanihassan
\fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 /lotide
Require it:const _ = require(\'91@samirabanihassan/lotide');
Call it:const results = _.tail([1, 2, 3]) // => [2, 3]
\
Documentation\
The following functions are currently implemented:
\
function1( \fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 assertArraysEqual \fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 )
: compares two arrays if they are equal\function2(assertEqual)
: compares two inputs\function3(assertObjectsEqual)
: \fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 compares two objects by their key \fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0
\pard\pardeftab720\sl400\partightenfactor0
\fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 * function3(countLetters)
: counts the letters in a string
\pard\pardeftab720\sl400\partightenfactor0
\cf4 \cb5 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 * function3(countOnly)
: returns the number of iteration of an item in an array\
function3(eqArrays)
: compares two arrays\function3(eqObjects)
: compares two objects\function3(findKey)
: searches for an item in an object and returns its key\function3(findKeyByValue)
: finds corresponding key with a value in an object\function3(head)
: returns first item of an array\function3(letterPositions)
: finds position of a letter in a string\function3(map)
: returns an array of first letters in original array\function3(middle)
: returns middle item(s) of an array\function3(tail)
: returns an array'92s items except the first item\function3(takeUntil)
: returns all items in an array until a specific item\function3(without)
: returns a sub-array of the original array
\pard\pardeftab720\sl400\partightenfactor0
\fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0
\pard\pardeftab720\sl340\partightenfactor0
\f1\fs28 \cf6 \cb1 \strokec6 \shad0
}