30秒学会 JavaScript 片段 – juxt
Takes several functions as argument and returns a function that is the juxtaposition of those functi...
Takes several functions as argument and returns a function that is the juxtaposition of those functi...
Converts a color code to a rgb() or rgba() string if alpha value is provided. Use bitwise right-shif...
Omits the key-value pairs corresponding to the given keys from an object. Use Object.keys(obj), Arra...
Returns true if the given number is a power of 2, false otherwise. Use the bitwise binary AND operat...
Parse an HTTP Cookie header string and return an object of all cookie name-value pairs. Use String.p...
Returns True if there are duplicate values in a flat list, False otherwise. Use set() on the given l...
Returns the difference (in days) between two dates. Calculate the difference (in days) between two D...
Attempts to invoke a function with the provided arguments, returning either the result or the caught...
Hashes the input string into a whole number. Use String.prototype.split(”) and Array.prototype.redu...
Calculates the greatest common divisor of a list of numbers. Use functools.reduce() and math.gcd() o...