1 | ;
|
2 |
|
3 | const hasOwn = Object.prototype.hasOwnProperty;
|
4 |
|
5 | function has(object, name) {
|
6 | return hasOwn.call(object, name);
|
7 | }
|
8 |
|
9 | const promiseUtils = require('promise-callbacks');
|
10 |
|
11 | module.exports = {
|
12 | asCallback: promiseUtils.asCallback,
|
13 | deferred: promiseUtils.deferred,
|
14 | delay: promiseUtils.delay,
|
15 | waitOn: promiseUtils.waitOn,
|
16 | withTimeout: promiseUtils.withTimeout,
|
17 | wrapAsync: promiseUtils.wrapAsync,
|
18 | has,
|
19 | };
|