30秒学会 JavaScript 片段 – pullBy
Mutates the original array to filter out the values specified, based on a given iterator function. C...
Mutates the original array to filter out the values specified, based on a given iterator function. C...
Returns the index of the last element for which the provided function returns a truthy value. Use Ar...
Filters out the non-unique values in an array, based on a provided comparator function. Use Array.pr...
Returns the unique symmetric difference between two arrays, not containing duplicate values from eit...
Returns true if two arrays contain the same elements regardless of order, false otherwise. Use a for...
Returns an object containing the parameters of the current URL. Use String.prototype.match() with an...
Returns true if the element has the specified class, false otherwise. Use element.classList.contains...
Removes elements in an array until the passed function returns true. Returns the remaining elements ...
Returns true if the given string contains any whitespace characters, false otherwise. Use RegExp.pro...
Checks if the provided integer is a prime number. Check numbers from 2 to the square root of the giv...