1.1.20 • Published 9 years ago
essentialjs v1.1.20
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:
- 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
_, id, K,
builtin, toArray,
variadic, apply, applyNew,
ncurry, λ, curry, partial,
flip, flip3, nflip,
unary, binary, nary,
compose, pcompose, sequence, over,
notF, not:notF, eq, notEq, typeOf, isType,
toObject, extend, deepExtend, deepClone, forOwn,
fold, fold1, foldr, foldr1, map, filter, any, all, each, indexOf, concat,
slice, first, last, rest, initial, take, drop,
inArray, remove, tails, uniqueBy, unique, dups,
flatten, union, intersection, flatMap,
pluck, deepPluck, where, deepWhere,
values, pairs, interleave, intersperse, intercalate,
zip, zipWith, zipObject, unzipObject,
range, shuffle,
sortBy, groupBy, countBy,
format, template, gmatch, permutations, combinations, powerset,
# Fantasy
fmap, ap, chain, liftA, seqM
}
1.1.20
9 years ago
1.1.19
9 years ago
1.1.18
9 years ago
1.1.17
9 years ago
1.1.16
9 years ago
1.1.15
9 years ago
1.1.14
9 years ago
1.1.13
9 years ago
1.1.12
9 years ago
1.1.11
9 years ago
1.1.10
9 years ago
1.1.9
9 years ago
1.1.8
9 years ago
1.1.7
9 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
10 years ago
1.1.2
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago