Latest: 1.1.20
Compatibility: Node, ES5, Common, AMD
License: MIT
npm install essentialjs
// Add functions to global namespace,// `global` for Node or `window` for browser
Highlights
Essential.js is an alternative to Underscore.js that gives you a solid base to get started with functional programming in JavaScript:
- All non-variadic functions with more than one argument are curried.
- Arguments are in proper order for better composition.
- Includes a few helpers not found in Underscore.
- Inspired by Brian Lonsdorf's talk, Hey Underscore, You're Doing it Wrong.
API
module.exports = # Core _idK builtintoArray variadicapplyapplyNew ncurryλcurrypartial flipflip3nflip unarybinarynary composepcomposesequenceover notFnot:notFeqnotEqtypeOfisType toObjectextenddeepExtenddeepCloneforOwn foldfold1foldrfoldr1mapfilteranyalleachindexOfconcat slicefirstlastrestinitialtakedrop inArrayremovetailsuniqueByuniquedups flattenunionintersectionflatMap pluckdeepPluckwheredeepWhere valuespairsinterleaveintersperseintercalate zipzipWithzipObjectunzipObject rangeshuffle sortBygroupBycountBy formattemplategmatchpermutationscombinationspowerset # Fantasy fmapapchainliftAseqM