30秒学会 JavaScript 片段 – hashNode
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use crypto API to create ...
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use crypto API to create ...
Capitalizes the first letter of a string. Use array destructuring and String.prototype.toUpperCase()...
Redirects the page to HTTPS if its currently in HTTP. Also, pressing the back button doesn’t t...
Copy a string to the clipboard. Only works as a result of user action (i.e. inside a click event lis...
Creates a function that accepts up to n arguments, ignoring any additional arguments. Call the provi...
Performs stable sorting of an array, preserving the initial indexes of items when their values are t...
Applies fn to each value in arr, splitting it each time fn returns a new value. Use Array.prototype....
Applies a function against an accumulator and each key in the object (from left to right). Use Objec...
Creates a shallow clone of an object. Use Object.assign() and an empty object ({}) to create a shall...
Returns the prefixed version (if necessary) of a CSS property that the browser supports. Use Array.p...