Sha256: fd47d7fe82b4624a8ab2df313e1f9b589e058e534ec89acf3b2bee73cb3b4eda
Contents?: true
Size: 397 Bytes
Versions: 82
Compression:
Stored size: 397 Bytes
Contents
var anObject = require('./_an-object'); var isObject = require('./_is-object'); var newPromiseCapability = require('./_new-promise-capability'); module.exports = function (C, x) { anObject(C); if (isObject(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; };
Version data entries
82 entries across 38 versions & 8 rubygems