Changelog
v0.14.0
memoizeWith
since it was more of a POC from ramda's code base
startsWith
function, which should work just like endsWith
but with the beginning of a list.isPrime
should handle edge cases like 0 a correctly now and return false instead of 0 (#121)endsWith
signature to reflect list instead of ArrayChangelog
v0.13.0
find
has gone back to returning undefined
instead of null
for not found valuesfold
function which runs a reduce
without an initial accumulatorpropOr
Function which returns the value of a property from an object or the provided default valuegh-pages
branchdeprecated
when they were actually notjoin
moved it to the Array
Category, and fixed a typo in it's exampleapply
showed incorrect curry examplesmin
is now using the fold
functionChangelog
v0.12.2
propEq
function which takes a object property value and compares it against a given value to see if it's equalnotEq
function which checks if the provided values are not equal to each otherand
should now reflect correctly on the return and paramsChangelog
v0.12.0
ascend
and descend
are no longer curried since they're meant to be sort based functionality and will always be called with their 2 params
ascendBy
and descendBy
have kept their curried statusmedian
function which gets the median of an array of numbersmod
function which behaves like a modulo would in actual mathematicssomePass
function which takes an array of functions and passes a value through them until one passes or the end is reachedeveryPass
function which takes an array of functions and passes a value through until one fails or the end is reachedchunk
function which chunks an array of data into smaller arrayspipe
& pipeP
are now using the Kyanite reduce
giving them a small performance boostaddIndex
description tweaksmemoizeWith
added RamdaJs credit since it's based mostly off their versionlt
, lte
, gt
, and gte
all had invalid examples in their documentation. This is addressed nowfind
and deepEq
examples were incorrectChangelog
v0.11.3
sum
function which takes an array of numbers and adds them together
product
function which takes an array of numbers and multiplies them together
addIndex
typememoizeWith
typeaddIndex
Documentationslice
DocumentationChangelog
v0.11.2
addIndex
function which can be used on map
, filter
, or reduce
like functions to have them return the index and full list back to your callback functionamend
function (for now?)memoizeWith
functionChangelog
v0.11.0 (0.11.1)
factors
output has changed to be inclusive, it also works with negative numbers now
factors(-36) // => [1, 2, 3, 4, 6, 9, 12, 18, 36]
negate
and map
map(negate, factors(-36)) // => [-1, -2, -3, -4, -6, -9, -12, -18, -36]
empty
(and isEmpty
until its removed) will now throw a type error for unsupported types
empty
supports the same types as count
as well as null
and undefined
empty(1) // => TypeError: Unsupported type: Number
juxt
functionality changes. It's now a 2 param curried function that takes arrays for data
juxt([Math.min, Math.max], [3, 4, 9, -3]) // => [-3, 9]
ap
re written to be a proper S combinator function
ap(x => y => x + y, z => z * 2, 2) // => 6
amend
function since it's really just a limited Object.assign
no real use for itreduce
now supports iterable types like Map
and Set
inc
Function which increases a number by 1dec
Function which decreases a number by 1isZero
Function which checks if the number passed in is equal to the number zerosize
Function which takes a map or set data type and returns its size
Function
which may change in the future as I add more Map|Set friendly functionscount
Function which takes any collection based data and counts the values withinreduced
Function which should be used with reduce
or reduceRight
as a short circuit for the function (see improved)has
is now generic for Array
, String
, Object
, Map
, and Set
data typeswithin
Function which acts like between
but is exclusive of the numbers providedisEmpty
now supports Maps
and Sets
partition
performanceomit
performancefactors
had some typos in its docsalways
documentationidentity
documentation examplestype
to be more lightweightreduce
and reduceRight
reduced
which will short circuit out of the iteration and return the valuereduce
, reduceRight
, and reduced
are all using the @@transducer
protocolevery
, some
, reject
, filter
, and find
to use this new flow giving them decent performance improvementsheight
function for a tiny performance boost