Opal-Estate-Pro/node_modules/es5-ext/test/boolean/is-boolean.js

13 lines
354 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"use strict";
module.exports = function (t, a) {
a(t("arar"), false, "String");
a(t(12), false, "Number");
a(t(false), true, "Boolean");
a(t(new Boolean(false)), true, "Boolean object");
a(t(new Date()), false, "Date");
a(t(new String("raz")), false, "String object");
a(t({}), false, "Plain object");
a(t(/a/), false, "Regular expression");
};