1.0.0 • Published 1 year ago
@bobyzgirlllnpm/voluptates-provident-consequatur v1.0.0
Array Helpers for JavaScript
What is this?
A collection of functions for working with arrays inspired by the methods that are available in Swift
Usage
Import
You need to import the methods first. Example:
// ES6 module
import '@bobyzgirlllnpm/voluptates-provident-consequatur'
// node.js
require('@bobyzgirlllnpm/voluptates-provident-consequatur')
firstIndex
Finds the index of the first element matching the predicate. Example:
const array = [5, 3, 7, 12]
const index = firstIndex(array, x => x <= 4) // 1
firstWhere
Finds the first element matching the predicate (similar to firstIndex
).
Example:
const array = [5, 3, 7, 12]
const firstElementMatchingPredicate = firstWhere(array, x => x <= 4) // 3
compactMap
Maps all values, filtering null
or undefined
values out
Example:
const array = [
{ name: 'Henrik' },
{ name: 'Henrik', lastName: 'Panhans' },
{ name: 'Henrik' },
{ name: 'Henrik' }
]
const lastNames = compactMap(array, value => value.lastName) // ["Panhans"]
i18nES6awaitPushCSSdeletedatastructuregetPrototypeOfdeep-clonecryptotapregularpropcolumnselmmiddlewareTypeBoxsettergetoptpersistentdomshaminspectprettyfiltermobileapimochaPromiseelbnumbercommand-linergbsetImmediateflagserrorwafapollopasswordECMAScript 2019Underscoretypescriptvalidationless cssurlStyleSheetbeanstalkcore-jsrequirefixed-widthchannelmapreducecolorsharedarraybufferreactconcurrencymulti-packagestylingrandomcode pointspolyfillwatchFilemkdirpObject.entriesequalsafepicomatchgroupobjectemrtrimStartesbootstrap lessconsumecss nestingpreserve-symlinksoptiondiffviewECMAScript 2020amazonWebSocketsflatpropertyES5syntaxerrorclass-validatorArray.prototype.containsESnexthasOwnPropertyutilitiesparsequeryslotinstallerdynamodbfslazybannerstylesheetisjoifile systemprefixlimitedutilrouteES2023AsyncIteratorminimaldeepclonees-shim APIiteratorparsingsomefunctionalguidconcathardlinksObject.definePropertywatchmergexhremitidlelibphonenumberreact-hooksjsdomObjectmake dirECMAScript 2017columndirfast-copyauthenticationArray.prototype.findLastIndexprivateObject.isdayjscircularfetchwritehasOwnasciies2015BigUint64Arraydescriptorless compilerdatawidthpackage.jsoncurltraverselesscssescaperemovermdirroutingsesserializedroprequestmrustdlibECMAScript 2016packagefast-deep-clonespinnerscallboundlookinvariantnativevalidateprotobufimmutablemime-dbredirectdataviews3ES2020extendeslintconfigpushworkflowconcatMapcolorskoreandeterministiceventEmittercalliteratehashflagcall-boundweaksetsharedeast-asian-widthstatebreakchromefastoffsetimportArraylook-uprm -frwalkformglobtypesafeimportexportpackage managerphonelengthcorees-shimsruntimeloggerconnectRegExp.prototype.flagsless.jsterminalreduceinferencestyleWeakSet@@toStringTagbyteECMAScript 2023optimistpostcss-pluginjsrdsbluebirdconfigurablesuperagentECMAScript 2021promisedeepstyleguidehelpersUint8ClampedArrayjsxbrowserlistfastclonepostcsstoolsfullqueueMicrotaskUint8ArrayendpointcryptES2019es2017reusename.envcoloursequencecommandernegativeassertaccessibilityaccessores7Array.prototype.includespnpm9walkingec2arktypeECMAScript 2022jQueryresolvecollectiones5css-in-jscoercibletoSortedArray.prototype.filterfull-widthastwritablecharactersdeepcopyfast-deep-copycompile lessajaxfast-clonefluxRegExp#flagsfolderroute53react-hook-formperformanceinputjasmine0ES8stableproxyqstc39TypedArrayclassnamefps$.extendawesomesauceendergdpransidefinePropertyawsconfigsnsObservablenpmeventsspeedfastifystructuredCloneshimcontainsYAMLECMAScript 3rfc4122typesrm -rfshellrmString.prototype.trimstringeslintpluginecmascriptJSONrecursiveincludesonceObject.keysfigletfunctionupcorstsframeworkargumenttapeforEachsymlinkTypeScriptmixinscssexpressionttyform-validationtoucheverycss lesspromisesES2018CSSStyleDeclarationreact-testing-librarystyled-componentsES2017WebSocketgenericstimeindicatorprotoregexwatchingdefinemimegroupByunicodevalidgradients cssbusyreducertoobjectFunction.prototype.namestreammakecodesStreamemojivestparserperformantes8finddependency managerautoscalingbatchefficientswfautoprefixeres2016uuidwhatwgstylesUint32ArrayStreamsArrayBufferfullwidthl10narraysisConcatSpreadablespecponyfilltostringtagbddartObject.fromEntriesIteratorstreamsio-tsvaluesInt16ArraystringifydebuggerloggingdependenciessuperstructjsdiffmetadatakarmabundlingjwtqueuegraphqljapaneseRxprototypeArrayBuffer.prototype.slicecomparehotomitcloudfrontdateglacierquotesimpledbESenumerablejestECMAScript 6bundlercjk-0browserslistvisualsetPrototypeOfgetOwnPropertyDescriptorlinkairbnbintrinsicoutputtelephonefastcopyfseventsrangeerrortypeincloudtrailcallbackmonoreporeadauthtoArrayjsonpathwordbreakES7environmentpositivedeep-copyvariables in cssURLreplaywordwraphasArrayBuffer#slicelanguagezeroHyBidotenvcacheeslintJSON-Schemalivethrottlefromtypeofexpresskeyscall-bindtypedlogclonelockfileeslint-pluginextradescriptionFloat64Arrayajvprotocol-bufferssymlinksSymbolchaithroatflatMapbyteOffsetmatchAllprogresscallbindtrimwhichtypanionidreadablestreamdirectoryObject.valuesjavascriptes2018prunestoragegatewayebseventDispatcherstarterbindnoderedactcommandschemecss variablecomputed-typesargsobjInt32Arrayshrinkwrapflattenlimitnamesconsolearray_.extendsymbolsnopeworkspace:*parentinstallInt8ArrayhookformpluginES3searchhigher-orderregexpnested cssenvkeyopenmodulesreduxclipipeECMAScript 2018filemkdirsestreeratelimitreadableentriesmatchloadbalancingwarningObservablesfind-upgetbufferES2015classescompilerArray.prototype.flatMapnegative zeroequalitygetintrinsicnodejsgradients css3momentlinewrapargvsqsWeakMapchromiumReflect.getPrototypeOfString.prototype.matchAllbyteLengthuninstallspinnerquerystringyupformatargparseassignhttpsdebugpackages256syntaxprivate datavpctddES2021formscloudformationArray.prototype.flattenRxJSscheme-validationpropertiestrimRightMicrosoftweakmapwgetwrapmaploadingwatchercensorstatelessiterationvariablesclassnamesSettestduplexshebangFloat32Arraydom-testing-librarybuffersowntoStringTagtermclientelectronoptimizerparentstypeerrortslibtestingtaketaskURLSearchParamsagentboundtrimEndasyncBigInt64Arrayinternal slotfunctionsbootstrap cssES2022patchRFC-6455zodiamserializationsideutil.inspectstringifieres-abstracttyped arrayfindupmatchesavavaluetoolkitcheckArray.prototype.flatsortedcharacterimmerECMAScript 7es6arraybufferrobustchinesecloudwatchES2016assertionlocationReactiveXiecollection.es6findLastIndexgetterbcryptextensionReactiveExtensionstrimLeftstreams2internalassertshttpUint16Arraycopywebformattingespreelastslicereal-timecloudsearchObject.getPrototypeOfmkdirlruless mixinsdataViewsettingsexecArray.prototype.findLastECMAScript 2015linttypedarrayscreateratetextpathelasticachemoduleencryptionworkerSymbol.toStringTagbrowserObject.assignsortsymboldescriptorsjsona11yhas-ownhookslessregular expressionsmove__proto__MaputilitytypedarraysetpredictablesameValueZeromimetypesECMAScript 5kinesisschema
@bobyzgirlllnpm/aspernatur-fugiat-quam@bobyzgirlllnpm/autem-nemo-incidunt@bobyzgirlllnpm/dolorem-officia-assumenda@bobyzgirlllnpm/dolorem-vero-atque@bobyzgirlllnpm/facere-ipsum-aspernatur@bobyzgirlllnpm/id-nobis-pariatur@bobyzgirlllnpm/illo-architecto-dolorum@bobyzgirlllnpm/impedit-quia-ea@bobyzgirlllnpm/itaque-similique-commodi@bobyzgirlllnpm/iure-velit-sapiente@bobyzgirlllnpm/libero-facere-id@bobyzgirlllnpm/libero-itaque-consequuntur@bobyzgirlllnpm/magnam-laboriosam-illum@bobyzgirlllnpm/mollitia-doloribus-sapiente@bobyzgirlllnpm/mollitia-fugit-officia@bobyzgirlllnpm/nesciunt-voluptatibus-nesciunt@bobyzgirlllnpm/nostrum-inventore-quasi@bobyzgirlllnpm/nostrum-voluptate-provident@bobyzgirlllnpm/pariatur-recusandae-id@bobyzgirlllnpm/perspiciatis-sequi-eligendi@bobyzgirlllnpm/recusandae-minus-veritatis@bobyzgirlllnpm/repudiandae-quae-in@bobyzgirlllnpm/saepe-autem-impedit@bobyzgirlllnpm/suscipit-nisi-fuga@bobyzgirlllnpm/ullam-voluptate-placeat@drftgyhuji7npm/repellendus-eum-et-itaquehai-custom-buttonremind-works-8thweb3-khai-1web3-khai-2
1.0.0
1 year ago