You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

safe_format.js 246B

123456789
  1. var util = require('util')
  2. module.exports = function() {
  3. var args = Array.prototype.slice.call(arguments, 0)
  4. args.forEach(function(arg) {
  5. if (!arg) throw new TypeError('Bad arguments.')
  6. })
  7. return util.format.apply(null, arguments)
  8. }