UNPKG

require-node-example

Version:

An example for how to use npm package: require-node & require-node-loader

11 lines (10 loc) 181 B
'use strict'; module.exports = x => ( x instanceof Promise || ( x !== null && typeof x === 'object' && typeof x.then === 'function' && typeof x.catch === 'function' ) );