1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-16 11:45:24 +00:00
notes/node_modules/normalize-package-data/lib/safe_format.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

9 lines
245 B
JavaScript

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)
}