30秒学会 JavaScript 片段 – atob
Decodes a string of data which has been encoded using base-64 encoding. Create a Buffer for the give...
Decodes a string of data which has been encoded using base-64 encoding. Create a Buffer for the give...
Logs the name of a function. Use console.debug() and the name property of the passed method to log t...
Converts an integer to a suffixed string, adding am or pm based on its value. Use the modulo operato...
Convert tabs to spaces, where each tab corresponds to count spaces. Use String.prototype.replace() w...
Returns the n maximum elements from the provided array. If n is greater than or equal to the provide...
Returns the n minimum elements from the provided array. If n is greater than or equal to the provide...
Results in a string representation of tomorrow’s date. Use new Date() to get the current date,...
Inverts the key-value pairs of an object, without mutating it. The corresponding inverted value of e...
Calculates the factorial of a number. Use recursion. If n is less than or equal to 1, return 1. Othe...
Splits values into two groups. If an element in filter is truthy, the corresponding element in the c...