30秒学会 JavaScript 片段 – deepGet
Returns the target value in a nested JSON object, based on the keys array. Compare the keys you want...
Returns the target value in a nested JSON object, based on the keys array. Compare the keys you want...
Returns the number of times a function executed per second. hz is the unit for hertz, the unit of fr...
Initializes an array containing the numbers in the specified range where start and end are inclusive...
Reverses a string. Use the spread operator (…) and Array.prototype.reverse() to reverse the order ...
Returns the head of a list. Check if arr is truthy and has a length property, use arr[0] if possible...
Converts an angle from radians to degrees. Use Math.PI and the radian to degree formula to convert t...
Checks if a string is upper case. Convert the given string to upper case, using String.prototype.toU...
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...