promise-prototype
Version:
Get the prototytpe of the Promise class (Native ES6, Bluebird, Q, RSVP, etc.)
14 lines (11 loc) • 312 B
JavaScript
/*!
* promise-prototype <https://github.com/AndreasPizsa/promise-prototype>
*
* Copyright (c) 2016, Andreas Pizsa.
* Licensed under the MIT License.
*/
;
module.exports = function (PromiseLib) {
PromiseLib = PromiseLib || Promise;
return PromiseLib.resolve(true).constructor.prototype;
};