You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
246 B
JavaScript
10 lines
246 B
JavaScript
5 years ago
|
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)
|
||
|
}
|