essentialjs

1.1.20 • Public • Published

essential.js

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
require('essentialjs').expose(global)

Highlights

Essential.js is an alternative to Underscore.js that gives you a solid base to get started with functional programming in JavaScript:

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
}

Package Sidebar

Install

npm i essentialjs

Weekly Downloads

6

Version

1.1.20

License

none

Last publish

Collaborators

  • elclanrs