pure-fns
Features
TODO: write this secionInstallation
npm install --save pure-fns
TODO: write this secion
Usage
TODO: write this secionPhilosophies
composition is good, currying is bad good namesRules
- type-safe w/ typescript & tsdoc
- 100% tested
- zero dependencies
- native es modules
- no transpilation
- use modern apis (Set, Map, etc.) where appropriate
- don't carry over bad function names just for familiarity. instead, reference
TODOs:
Name Ideas
- omitKeys
- omitIndices/omitIndexes
- omitValues
- omitFirst
- omitLast
- isString
- isArray
- isNull
- isUndefined
- isNullish
- hasKey
- hasIndex
- hasValue
- firstKey
- nthKey
Lodash Functions
- x chunk
compactconcat- x difference
- differenceBy
- differenceWith
-
drop -
dropRight - dropRightWhile
- dropWhile
-
fill -
findIndex -
findLastIndex - x first (as firstValue)
-
flatten -
flattenDeep -
flattenDepth -
fromPairs - x head (as "firstalue")
-
indexOf - initial (as "omitLast")
- intersection
- intersectionBy
- intersectionWith
-
join - last (as "lastValue")
-
lastIndexOf - nth (as "nthValue")
- pull (as "omitValues")
- pullAll (as "omitValues")
- pullAllBy
- pullAllWith
- pullAt
- remove
-
reverse -
slice - sortedIndex
- sortedIndexBy
- sortedIndexOf
- sortedLastIndex
- sortedLastIndexBy
- sortedLastIndexOf
- sortedUniq
- sortedUniqBy
- tail (as "omitLast")
-
take -
takeRight - takeRightWhile
- takeWhile
- union
- unionBy
- unionWith
- uniq
- uniqBy
- uniqWith
- unzip
- unzipWIth
- without (as omitValues)
- xor
- xorBy
- xorWith
- zip
- zipObject
- zipObjectDeep
- zipWith
Contributors
This project follows the all-contributors specification. Contributions of any kind welcome!