not.js 327 B

1234567891011
  1. "use strict";
  2. var identity = require("../../../function/identity")
  3. , noop = require("../../../function/noop");
  4. module.exports = function (t, a) {
  5. a(t.call(identity)(""), true, "Falsy");
  6. a(t.call(noop)(), true, "Undefined");
  7. a(t.call(identity)({}), false, "Any object");
  8. a(t.call(identity)(true), false, "True");
  9. };