30秒学会 JavaScript 片段 – pipeFunctions
Performs left-to-right function composition. Use Array.prototype.reduce() with the spread operator (...
Performs left-to-right function composition. Use Array.prototype.reduce() with the spread operator (...
Creates a function that gets the argument at index n. If n is negative, the nth argument from the en...
Moves the specified amount of elements to the end of the array. Use Array.prototype.slice() twice to...
Creates an object with keys generated by running the provided function for each key and the same val...
Converts Fahrenheit to Celsius. Follows the conversion formula C = (F – 32) * 5/9.
Makes a GET request to the passed URL. Use XMLHttpRequest web api to make a get request to the given...
Returns true if the elements of the first array are contained in the second one regardless of order,...
Returns true if the provided predicate function returns true for all elements in a collection, false...
Converts an asynchronous function to return a promise. In Node 8+, you can use util.promisify Use cu...
Returns the minimum value of an array, after mapping each element to a value using the provided func...