30秒学会 JavaScript 片段 – runPromisesInSeries
Runs an array of promises in series. Use Array.prototype.reduce() to create a promise chain, where e...
Runs an array of promises in series. Use Array.prototype.reduce() to create a promise chain, where e...
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use the SubtleCrypto API ...
Converts an asynchronous function to return a promise. In Node 8+, you can use util.promisify Use cu...
Performs left-to-right function composition for asynchronous functions. Use Array.prototype.reduce()...
Delays the execution of an asynchronous function. Delay executing part of an async function, by putt...
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use crypto API to create ...
Returns true if an object looks like a Promise, false otherwise. Check if the object is not null, it...
Runs a function in a separate thread by using a Web Worker, allowing long running functions to not b...