UNPKG

reserve

Version:

Lightweight http server statically configurable using regular expressions

11 lines (9 loc) 247 B
'use strict' module.exports = function () { let resolutionFunc, rejectionFunc const promise = new Promise((resolve, reject) => { resolutionFunc = resolve rejectionFunc = reject }) return [promise, resolutionFunc, rejectionFunc] }