This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createPromise () { | |
let resolve, reject | |
// eslint-disable-next-line promise/param-names | |
const promise = new Promise((...args) => ([resolve, reject] = args)) | |
return { promise, resolve, reject } | |
} | |
const remove = (a, y) => ( |