Changelog
v0.4.1
fuzzySearch
algorithm is stable again and extremely more accurate than before
fuzzySearch
testsChangelog
v0.4.0
gets
to props
to meep the convention consistentincludes
to contains
for strings (swapped with array)contains
to includes
for arrays (swapped with string)deepClone
because assign
ultimately generates a brand new object when ranjoin
string function which accepts a string and an array to generate a joined stringbranch
function which takes 3 functions and a value, and will run either the 2nd or 3rd function based on if the first passesap
function which takes an array of functions to be applied to an array of data, concating the results togetheron
function which takes 2 functions and 2 values, applies the 2nd function to both values and then applies the first function onto thoseidentity
pipe
Changelog
v0.3.0
src
and test
folder contents into seperate folders based on category
import isEmpty from 'kyanite/isEmpty'
it's more to make it easier to work with and avoid duplicationfindIndex
returns a maybe, so instead of a -1 if no index is found it will return undefined
src
folder is now included on install, so if you want to use the es6 versions of the module, you can import them from kyanite/src/type/function
import curry from 'kyanite/src/function/curry'
Changelog
v0.2.2
encase
which encases the provided function with try catch to safely execute the functiondrop
which takes an array and drops the requested number of values from the fronttake
which pulls values from an array up until the point specified (the opposite of drop)sortWith
which takes an array of functions and goes through the array when it encounters ties with the data while sorting itChangelog
v0.2.1
findIndex
function which takes a function and array and returns the first value from the array that passes the functiongroupBy
function which groups the values of an array into common properties of an objectsortBy
function which sorts an array based on the values when ran through a functiondescendBy
function which accepts a function to run against values for sorting in descending orderascendBy
function which accepts a function to run against values for sorting in ascending orderChangelog
v0.2.0
ascend
function which can be used with sort for ascending orderdescend
function which can be used with sort for descending orderboth
function which accepts 2 functions and a value, returns true if both functions pass, otherwise returns falseadd
functionChangelog
v0.1.0
fuzzySearch
params have been swapped, so now its fuzzySearch(needle, haystack)
insteadremoveAt
to just remove
replaceAt
to just update
flatten
has been removed, consider using concat
and concatMap
insteaduniq
now only looks for an array, use uniqBy
in order to use the old functionalityclone
since assign
is essentially the same thing with more capabilitiesjuxt
should now be contained within a single arraymean
so it returns 0 instead of NaN
for bad arguments passed inisEmpty
now handles values such as null
, undefined
, NaN
, and Booleans
it will return true
for ALL of theseempty
no longer throws an error for non "emptyables". Instead it returns undefined
prepend
docsava
and converted back to tape
(Yay!)max
now uses last
internally instead of nth
should improve is seperate build size/performancemin
now uses first
internally instead of nth
should improve is seperate build size/performancefunctionName
internal since it's no longer being usedisEqual
by removing impossible logicidentical
documentation with more examplesassign
for better optimization,path
function to safely navigate objects that may or may not have propertiessift
function which works a lot like filter
but with Object
data typeswhole
function which works a lot like every
but with Object
data typesany
function which works a lot like some
but with Object
data typesinsert
function which inserts a data value into a specified index of an arrayheight
function which works like length, however it handles object data typesgets
function which goes through an object to pull values requested in an arrayplan
function which takes a schema object of functions to apply to a matching object of datagt
function which compares the passed in values to determine if one is greater than the othergte
function which compares the passed in values to determine if one is greater than or equal to the otherlt
function which compares the passed in values to determine if one is less than the otherlte
function which compares the passed in values to determine if one is less than or equal to the otherwhen
function which uses a logic function to trigger an action function if the arguments are trueconcat
function which concats the values of an array to a new arrayconcatMap
function which applies a function to the values of an array and concats themcompact
function which takes an array and removes all falsy values from ituniqBy
function which does what the original uniq
was built to do