Plato on Github
Report Home
node_modules/when/lib/Promise.js
Maintainability
79.70
Lines of code
13
Difficulty
12.59
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
/** @license MIT License (c) copyright 2010-2014 original author or authors */ /** @author Brian Cavalier */ /** @author John Hann */ (function(define) { 'use strict'; define(function (require) { var makePromise = require('./makePromise'); var Scheduler = require('./scheduler'); var async = require('./async'); return makePromise({ scheduler: new Scheduler(async) }); }); })(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); });