30秒学会 JavaScript 片段 – unfold
Builds an array, using an iterator function and an initial seed value. Use a while loop and Array.pr...
Builds an array, using an iterator function and an initial seed value. Use a while loop and Array.pr...
Builds a list, using an iterator function and an initial seed value. The iterator function accepts o...
Returns every element that exists in any of the two lists once, after applying the provided function...
Compares two objects to determine if the first one contains equivalent property values to the second...
Iterates over a callback n times Use Function.call() to call fn n times or until it returns false. O...
Accepts a converging function and a list of branching functions and returns a function that applies ...
Returns every element that exists in any of the two arrays once, using a provided comparator functio...
Creates an object with the same keys as the provided object and values generated by running the prov...
Negates a predicate function. Take a predicate function and apply the not operator (!) to it with it...
Splits values into two groups according to a function, which specifies which group an element in the...