30秒学会 JavaScript 片段 – matchesWith
Compares two objects to determine if the first one contains equivalent property values to the second...
Compares two objects to determine if the first one contains equivalent property values to the second...
Iterates over a callback n times Use Function.call() to call fn n times or until it returns false. O...
Creates a new array out of the two supplied by creating each possible pair from the arrays. Use Arra...
Encode a set of form elements as an object. Use the FormData constructor to convert the HTML form to...
Triggers a specific event on a given element, optionally passing custom data. Use new CustomEvent() ...
Makes a POST request to the passed URL. Use XMLHttpRequest web api to make a post request to the giv...
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use the SubtleCrypto API ...
Redirects to a specified URL. Use window.location.href or window.location.replace() to redirect to u...
Accepts a converging function and a list of branching functions and returns a function that applies ...
Returns every element that exists in any of the two arrays once, using a provided comparator functio...