Opal-Estate-Pro/node_modules/es5-ext/test/function/#/not.js

12 lines
327 B
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
"use strict";
var identity = require("../../../function/identity")
, noop = require("../../../function/noop");
module.exports = function (t, a) {
a(t.call(identity)(""), true, "Falsy");
a(t.call(noop)(), true, "Undefined");
a(t.call(identity)({}), false, "Any object");
a(t.call(identity)(true), false, "True");
};