not.js 316B

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