1.0.0 • Published 22 days ago

@berufungirnpm/quo-officiis-veniam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days 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.

This project was created and published by me as part of my learnings at Lighthouse Labs.

Usage

Install it:

npm install @username/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • assertArraysEqual: console logs a message indicating if 2 given arrays are or not equal
  • assertEqual: console logs a message indicating if 2 given primitive values are or not equal
  • assertObjectsEqual: console logs a message indicating if 2 given objects have or not the same properties
  • countLetters: receives a string as argument and returns an object with the all the letters from the string as key and the times that letter is repeated as value
  • countOnly: returns how many instances of each string were found in a given string array
  • eqArrays: returns true if 2 given arrays are equal and false if they are not
  • eqObjects: returns true if 2 given objects have the same properties and false if they don't
  • findKey: takes an object and a callback, scans the object and returns the first key similar to the callback result.
  • findKeyByValue: takes an object and a property value as arguments and returns the correspondent key or undefined if the key is not in the object
  • flatten: transform a 1 level matrix into an array with the values that it contains.
  • head: console logs a message indicating if 2 given primitive values are or not equal
  • letterPositions: takes a string and a letter and returns an array with the indexes where that letter was found in the string.
  • middle: returns an array with the middle value of a given array. If the given array 0, 1 or 2 values it returns an empty array; if it has more than 3 values and its quantity is even it returns 2 middle value and if the quantity is odd it returns the middle value
  • tail: takes an array and returns a copy without the first value
  • takeUntil: returns a new array taking the elements from the beginning of given array stoping when the condition in a given callback function is fullfilled
  • without: takes 2 arrays, 1 with a set of values and other with the values to be removed from the first one and returns an array with the remaining values
optioncjkES2018framerdefineslottsregular-expressionReflect.getPrototypeOfminimalregular expressionsflatfast-deep-copysuperstruct[[Prototype]]httpsenvironmentsclienttypedreadablestreamkeysArray.prototype.findLastglobcommandstableecmascriptindicatorignoreguidelectronreduxredactchromebufferswriteqsgroupUint8ClampedArrayTypeBoxmovearraysObject.isspinnerspatchUnderscoresharedarraybuffersqsjavascripttslibmapreduceoptimistcodesfunction.lengthfnmatchextendgraphql-clientcensorqueryrandomnopegetPrototypeOfvariablesarrayTypeScriptnpmiamdirectorydebuggerrsscolumnswalkingstarterSetbinaryloadingautoprefixerbindECMAScript 2021JSONgetOwnPropertyDescriptorautoscalingpromisesparsingUint16Arrayinstallfast-cloneRegExp.prototype.flagsdependency managerimmutableprotocol-buffersvaluescallboundeslint-pluginidentifiersjshintdynamodbtimetypeofvalidationcliqueueES2022serializerthroatgetoptUint32Arraypreprocessordeep-cloneglacierprefixdeletetapeObject.getPrototypeOfhasoutputworkerString.prototype.matchAllkoreanterminalfull-widthES3shamfast-copydom-testing-librarydeterministici18npackagesjoiconcurrencyprototypedirfpspathInt16ArrayperformancematchesieisfindLastfastifyratelimitsetterWebSocketsshimrdslook-upsymbolsstringmime-dbrouteflagsiterateBigUint64ArraysesviewTypedArraywrapjsxhttpsortedECMAScript 2015sequencetakesymlinkscommand-linehelpersstylesprettysnsfullwidthpicomatchtypedarrayslogsharedtrimdropyamlspinnertoStringTaginstalleragentvestasyncxtermcurlECMAScript 5react-testing-librarynodedragcacheassertsargumentreworkbusydatadeepcopylrusortfetchglobalrmdirregularassertwhatwgmimeregexpserializelastgroupByES2021manipulationredux-toolkitgettertranspilerworkspace:*es-shim APIECMAScript 2016higher-orderlazycloudfrontmulti-packagetraversereact posechannelcheckInt32Arrayexpressl10nstreamslanguageyupSymbolMapmergeUint8ArraydescriptorbytelockfiletestingnamemochaelbcomparematchAlltextttynodejsfromio-tsPushAsyncIteratorHyBifileWeakSetproxyupebsfeedtoSortedemrMicrosofttransformrm -frduplexWebSocketapilinktostringtagArraybyteLengthforkparserhasOwnpopmotionwhichmatchzodsidesliceES7listeners256cloudwatchschemawalk.envajvbannervisualobjtddasteriskstasksubprocesslengthestree0japanesepyyamlstylingpropertiesArrayBuffer.prototype.slicerobusteverytypeerrordescriptionECMAScript 2022formattingshebangimportexportvarsmkdirsYAMLtrimEndawaitjsdomenvtrimStartrapidcoercibleObject.entrieseventsconcatescapemakeparentpropertyformsRFC-6455Object.fromEntriessimpledbcharacternumberhtmlunicoderesolveESnextsyntaxerrorinternal slotsearchmrumomenttrimRightroute53ponyfillzeropipefunctionalinternaldeepsymlinkboundcollectiondebughookspostcssdescriptorsbreakespreeCSSnegative zeroconfigcloudformationObject.assignscheme-validationbrowserconsumecoreajaxequalECMAScript 6getintrinsictoobjectchaireusemkdirpfindes63dsettingsObservablesjsonparsehas-ownprocesstoolkitobjecttapasciiregular expressionWeakMapquerystringfindLastIndexefficientFloat64Arrayawesomesauceavatoolsfile systemkeyES2017setmodulejestES5immercolumndateES2023chromiumcssECMAScript 2019es2017east-asian-widthtypecharactersbrowserlisttypanionvalidStyleSheetiterationfastidanimationECMAScript 2020propemojiprivateconsolegdprfastcopylocalreactnpmignorecss-in-jsECMAScript 2018Object.valueswaapiqueueMicrotaskRxJSvaluegetworkflowelasticacheinferenceinputhelpercommanderreadablebundlingairbnbweakmapfspushansidayjsexpressionownomitprotobufrmArrayBuffer#sliceartloggeres2015deepcloneeslintBigInt64Arrayconfigurabletypesafeintrinsicstyled-componentsbeanstalkxmlexectyped arrayurlshrinkwrapbddtesterES2019functionsafeRegExp#flagsdependenciesexecutecopylinewrapfullpostcss-plugintypescriptamazonReactiveExtensionsspeedroutinggraphqlendpointtypesArray.prototype.containsarraybufferfiltersetImmediateArray.prototype.flatform-validationrangeerrorreadcoloruuidposewritablerulestypedarraydataviewsomecolorscolourhookformargvspawnenderlookhasOwnPropertyfigletphonecloneStreamstestfixed-widthrm -rfrequeststoragegatewayfind-upes2018inhardlinkscircularString.prototype.trimbyteOffsetastcallbindredirectcontains$.extendreal-timesameValueZeroiteratorIteratormetadataisConcatSpreadablebatchcloudtrailtc39xhridleprivate datarfc4122stringifiercallpreserve-symlinksrecursiveArray.prototype.flattenglobalsbinsource mapkinesisdiffparentsfast-deep-cloneruntimeStreamlintprunefindupgitignorecloudsearchRxenumerablecallbackutilassignpersistentdeep-copyserializationvpcenvironmententrieszxECMAScript 3invariantflattenES2016promiseuninstallES2015namesstyleguidelibphonenumberfolderchildcompileraccessibilitythrottleESes8setPrototypeOfdefinePropertytouchwordbreakbundlerflatMapstylees2016ReactiveXimportstatelessECMAScript 7jQueryloggingschemeObject.definePropertystdlibsymbolES2020extensiongenerics.gitignoreincludesrequiredotenvquoteSymbol.toStringTagwgetcall-bindstreamURLwarningstructuredClonewidthES8Array.prototype.flatMapeventDispatcher__proto__utilityswfmanagerArray.prototype.findLastIndexforEacheventEmitterrgbjswafaccessordatastructure
1.0.0

22 days ago