30秒学会 JavaScript 片段 – deepFreeze
Deep freezes an object. Use Object.keys() to get all the properties of the passed object, Array.prot...
Deep freezes an object. Use Object.keys() to get all the properties of the passed object, Array.prot...
Clones a regular expression. Use new RegExp(), RegExp.source and RegExp.flags to clone the given reg...
Returns the first index in an IList that matches the given predicate function, match. Use Enumerable...
Performs left-to-right function composition. Use Array.prototype.reduce() with the spread operator (...
Creates an effect where text appears to be "etched" or engraved into the background. text-...
Calculates the greatest common divisor between two or more numbers. Define a gcd() function for two ...
Creates an object with keys generated by running the provided function for each key and the same val...
Makes a GET request to the passed URL. Use XMLHttpRequest web api to make a get request to the given...
Converts a string to snake case. Use Regex.Matches() with an appropriate regular expression to break...
Returns true if the elements of the first array are contained in the second one regardless of order,...