1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-25 23:45:32 +00:00
notes/node_modules/normalize-package-data/lib/safe_format.js

9 lines
245 B
JavaScript
Raw Normal View History

2017-03-09 18:16:08 +00:00
var util = require('util')
module.exports = function() {
var args = Array.prototype.slice.call(arguments, 0)
args.forEach(function(arg) {
if (!arg) throw new TypeError('Bad arguments.')
})
return util.format.apply(null, arguments)
}