lock.js 268 B

1234567891011121314
  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)
  6. , args = arguments;
  7. return function () {
  8. return apply.call(fn, this, args);
  9. };
  10. };