30秒学会 JavaScript 片段 – mask
Replaces all but the last num of characters with the specified mask character. Use String.prototype....
Replaces all but the last num of characters with the specified mask character. Use String.prototype....
Joins all elements of an array into a string and returns this string. Uses a separator and an end se...
Returns the logical inverse of the given value. Use the logical not (!) operator to return the inver...
Joins all given URL segments together, then normalizes the resulting URL. Use String.prototype.join(...
Returns all unique values of an array, based on a provided comparator function, starting from the ri...
Check if all elements in an array are equal. Use Array.prototype.every() to check if all the element...
Returns true if the parent element contains the child element, false otherwise. Check that parent is...
Returns the symmetric difference between two arrays, after applying the provided function to each ar...
Returns the distance between two vectors. Use Array.prototype.reduce(), Math.pow() and Math.sqrt() t...
Mutates an array by removing elements for which the given function returns false. Use Array.prototyp...