UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

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' ) );