lock.js 262 B

12345678910
  1. "use strict";
  2. var callable = require("../../object/valid-callable")
  3. , apply = Function.prototype.apply;
  4. module.exports = function (/* …args*/) {
  5. var fn = callable(this), args = arguments;
  6. return function () { return apply.call(fn, this, args); };
  7. };