UNPKG

425 BJavaScriptView Raw
1'use strict';
2
3const hasOwn = Object.prototype.hasOwnProperty;
4
5function has(object, name) {
6 return hasOwn.call(object, name);
7}
8
9const promiseUtils = require('promise-callbacks');
10
11module.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};