node/deps/npm/lib/install/and-ignore-errors.js
Rebecca Turner 41923c0c07 deps: upgrade npm to 3.3.6
PR-URL: https://github.com/nodejs/node/pull/3310
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-10-22 13:56:09 -04:00

10 lines
204 B
JavaScript

'use strict'
module.exports = function (cb) {
return function () {
var args = Array.prototype.slice.call(arguments, 1)
if (args.length) args.unshift(null)
return cb.apply(null, args)
}
}