web 3d图形渲染器
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.

14 lines
472 B

  1. "use strict";
  2. var toPosInt = require("../../number/to-pos-integer")
  3. , validValue = require("../../object/valid-value")
  4. , reduce = Array.prototype.reduce;
  5. module.exports = function (callSite/*, …substitutions*/) {
  6. var args, rawValue = Object(validValue(Object(validValue(callSite)).raw));
  7. if (!toPosInt(rawValue.length)) return "";
  8. args = arguments;
  9. return reduce.call(rawValue, function (str1, str2, i) {
  10. return str1 + String(args[i]) + str2;
  11. });
  12. };