UNPKG

promise-prototype

Version:

Get the prototytpe of the Promise class (Native ES6, Bluebird, Q, RSVP, etc.)

14 lines (11 loc) 312 B
/*! * promise-prototype <https://github.com/AndreasPizsa/promise-prototype> * * Copyright (c) 2016, Andreas Pizsa. * Licensed under the MIT License. */ 'use strict'; module.exports = function (PromiseLib) { PromiseLib = PromiseLib || Promise; return PromiseLib.resolve(true).constructor.prototype; };