30秒学会 JavaScript 片段 – mostPerformant
Returns the index of the function in an array of functions which executed the fastest. Use Array.pro...
Returns the index of the function in an array of functions which executed the fastest. Use Array.pro...
Returns the symmetric difference between two arrays, using a provided function as a comparator. Use ...
Performs left-to-right function composition. Use Array.prototype.reduce() to perform left-to-right f...
Runs an array of promises in series. Use Array.prototype.reduce() to create a promise chain, where e...
Mutates the original array to filter out the values specified, based on a given iterator function. C...
Returns the maximum value of a list, after mapping each element to a value using the provided functi...
Returns the sum of a list, after mapping each element to a number using the provided function. Use I...
Returns the index of the last element for which the provided function returns a truthy value. Use Ar...
Filters out the non-unique values in an array, based on a provided comparator function. Use Array.pr...
Removes elements in an array until the passed function returns true. Returns the remaining elements ...