Echo JS 0.11.0

<~>
olalonde 2944 days ago. link parent 1 point
Another one relatively simple:

    const promisify = fn => (...args) => new Promise(resolve, reject) {
      fn(...args, (err, result) => {
        if (err) return reject(err)
        resolve(result)
      }
    }

Replies