Newer
Older
ez-indexation / app / node_modules / normalize-package-data / lib / safe_format.js
@kieffer kieffer on 7 Mar 2017 245 bytes v0.0.0
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)
}