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
439 B

  1. "use strict";
  2. var callable = require("../../object/valid-callable")
  3. , aFrom = require("../../array/from")
  4. , defineLength = require("../_define-length")
  5. , apply = Function.prototype.apply;
  6. module.exports = function (/* …args*/) {
  7. var fn = callable(this), args = aFrom(arguments);
  8. return defineLength(function () {
  9. return apply.call(fn, this, args.concat(aFrom(arguments)));
  10. }, fn.length - args.length);
  11. };