30秒学会 JavaScript 片段 – isAfterDate
Check if a date is after another date. Use the greater than operator (>) to check if the first da...
Check if a date is after another date. Use the greater than operator (>) to check if the first da...
Executes a provided function once for each array element, starting from the array’s last eleme...
Returns true if the string is y/yes or false if the string is n/no. Use RegExp.test() to check if th...
Returns the maximum of a collection, after mapping each element to a value using the provided functi...
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...
Returns the sum of two or more numbers. Use range to iterate over the values of nums, adding each va...
Convert tabs to spaces, where each tab corresponds to count spaces. Use String.prototype.replace() w...
Checks if a string is lower case. Use strings.ToLower() to convert the string to lower case and comp...