30秒学会 JavaScript 片段 – lowercaseKeys
Creates a new object from the specified object, where all the keys are in lowercase. Use Object.keys...
Creates a new object from the specified object, where all the keys are in lowercase. Use Object.keys...
Filters out the non-unique values in an array. Use Array.prototype.filter() for an array containing ...
Returns the difference between two lists, after applying the provided function to each list element ...
By default Angular strips all whitespaces in templates to save bytes. Generally it’s safe. For...
Renders a Modal component, controllable through events. To use the component, import Modal only once...
Given an array of valid property identifiers and an array of values, return an object associating th...
Returns a string with whitespaces compacted. Use String.prototype.replace() with a regular expressio...
Converts a NodeList to an array. Use spread operator inside new array to convert a NodeList to an ar...
Returns the minimum value of two or more numbers. Use math.Inf(1) to set the initial minimum value t...
Splits values into two groups according to a predicate function, which specifies which group an elem...