1.0.0 • Published 1 year ago

@hoangcung1804npm/minima-placeat-facere v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Compare Builder

A series of Tools to make sorting Arrays easier to work with, particularly when sorting objects.

Can be used to build compare functions to pass to Array.sort(), or can extend Array directly to include new methods Array.sortByAsc(), Array.sortByDesc() and Array.buildSort().asc().desc().sort()

For example:

const primitiveInput = ["1", "3", "2"]

// using comparators
primitiveInput.sort(byAttributeAsc(i => i)) // ["1", "2", "3"]
primitiveInput.sort(byAttributeDesc(i => i)) // ["3", "2", "1"]

// using Array Extensions
primitiveInput.sortByAsc() // ["1", "2", "3"]
primitiveInput.sortByDesc() // ["3", "2", "1"]

Installation

npm install --save @hoangcung1804npm/minima-placeat-facere
pipeECMAScript 2016idlecssduplexreact animationstatelesscolumnsxtermtrimLeftnpmmergeinternaloncexhrspinnercircularcode pointsstatuspropertiesmatchpreprocessorMicrosoftframeworkStreamshasOwnequalprotobufjasminecallbackexpressES2016errorcryptoequalitywatchtrimRightargsReactiveXfilterentriesdebuggeres-abstracttypedarrayECMAScript 2019superagentcommand-linereact-hook-formupsharedarraybuffersymlinkoptionefficienthookformtapeoffsetbannerjavascriptHyBiwatchFilethreemkdirpbundlingdatewritablefindLastIndexsortObservablepatchsetPrototypeOfreadtesterbindansidropcompareObject.keyspicomatchbddtoSortedfastcopyrmtelephonewhatwgstringifierlanguagefast-copyshimshrinkwrapguidbyteLengthcallbindaccessorexit-codelimitArrayBuffer#slicecurriedairbnbsequenceerror-handlingdirectorytsmomentiterationpruneString.prototype.trimECMAScript 2015typedfigletnativepackage.jsondefinePropertyajvpostcss-pluginscheme-validationECMAScript 2017jsonschemaenvpnpm9ES6propertypopmotionfastSetutil.inspectfastifymatchAlliteratorterminalsymlinksio-tswordbreaknested cssfschromepromisestesttrimEndbuffertypedarraysless cssprettystylingawesomesaucereuseinvariantrecursiveclassesgradients css3passwordWeakSetindicatorfantasy-landECMAScript 5requirecreatevalidatesyntaxerrorBigUint64ArrayunicodeArray.prototype.containsgroupeslintquotehelperswaitcloneECMAScript 6immerWebSocketsprocess[[Prototype]]ObjectdescriptoravazodecmascriptweaksettrimStartdom-testing-libraryObject.fromEntriestypelimitedlinuxmobilesanitizationdeepcloneauthreact-testing-libraryharmonytostringtagFloat32ArraykeystypesafereduceUnderscoreArray.prototype.findLastIndex0fromcurlArray.prototype.includescolourwatchingECMAScript 3ECMAScript 2020artautoprefixeres7CSSformrmdirshellramdareact-hooksObject.definePropertyruntimeutilhttpssidepyyamlobjectstreams2callboundInt16ArrayfindoptimistfindupcoerciblemrusanitizemimetypesphoneAsyncIteratorchinesebluebirdcoreless.jsarrayeventEmitterwordwrapstylesheettranspilerboundes-shimsthroatES2020call-bindsigtermbatchyupJSON-Schemaprotocol-buffersloggeres2016querystring__proto__Uint8ClampedArrayqueryfixed-widthpreserve-symlinksargvhasanimationcommanderprefixprototypekeyenvironmentObject.entriesconsolegroupByfast-deep-cloneratelimitdirwrapwalkinga11yperformantsameValueZerojson-schemaloggingcodescjkastflatECMAScript 2018ECMAScript 2023tacitbuffersfetchredux-toolkittapInt32Arraylazyarktype
1.0.0

1 year ago