1.0.0 • Published 4 years ago

pure-fns v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
4 years ago

pure-fns

GitHub Workflow Status Codecov version downloads NPM

All Contributors PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

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
  • compact
  • concat
  • difference
  • differenceBy
  • differenceWith
  • drop
  • dropRight
  • dropRightWhile
  • dropWhile
  • fill
  • findIndex
  • findLastIndex
  • first (as firstValue)
  • flatten
  • flattenDeep
  • flattenDepth
  • fromPairs
  • 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!