1.0.0 • Published 4 years ago
pure-fns v1.0.0
pure-fns
Features
TODO: write this secion
Installation
npm install --save pure-fns
TODO: write this secion
Usage
TODO: write this secion
Philosophies
composition is good, currying is bad good names
Rules
- 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 other projects functions that are similar to our own
TODOs:
Name Ideas
- omitKeys
- omitIndices/omitIndexes
- omitValues
- omitFirst
- omitLast
- isString
- isArray
- isNull
- isUndefined
- isNullish
- hasKey
- hasIndex
- hasValue
- firstKey
- nthKey
Lodash Functions
- chunk
compactconcat- difference
- differenceBy
- differenceWith
dropdropRight- dropRightWhile
- dropWhile
fillfindIndexfindLastIndex- first (as firstValue)
flattenflattenDeepflattenDepthfromPairs- 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
reverseslice- sortedIndex
- sortedIndexBy
- sortedIndexOf
- sortedLastIndex
- sortedLastIndexBy
- sortedLastIndexOf
- sortedUniq
- sortedUniqBy
- tail (as "omitLast")
taketakeRight- 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!
1.0.0
4 years ago