index.js 210 B

1234567
  1. 'use strict';
  2. module.exports = typeof setImmediate === 'function' ? setImmediate :
  3. function setImmediate() {
  4. var args = [].slice.apply(arguments);
  5. args.splice(1, 0, 0);
  6. setTimeout.apply(null, args);
  7. };