马宇豪
2024-07-16 518fe95206669eee05488d364c8d3528eaff604f
1
2
3
4
5
6
7
8
9
10
11
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)
}