30秒学会 JavaScript 片段 – xProd
Creates a new array out of the two supplied by creating each possible pair from the arrays. Use Arra...
Creates a new array out of the two supplied by creating each possible pair from the arrays. Use Arra...
Returns true if the provided function returns true for all elements of an array, false otherwise. Us...
Returns every element that exists in any of the two arrays once, using a provided comparator functio...
Converts a comma-separated values (CSV) string to a 2D array of objects. The first row of the string...
Filters out all values from an array for which the comparator function does not return true. Use Arr...
Initializes an array containing the numbers in the specified range (in reverse) where start and end ...
Randomizes the order of the values of an IList, updating the original IList object. Use the Fisher-Y...
Reverses a string. Use the spread operator (…) and Array.prototype.reverse() to reverse the order ...
Returns the index of the last element for which the provided function returns a truthy value. Use ar...
Returns the head of a list. Check if arr is truthy and has a length property, use arr[0] if possible...