0
0

is-boolean.js 354 B

123456789101112
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. a(t('arar'), false, "String");
  4. a(t(12), false, "Number");
  5. a(t(false), true, "Boolean");
  6. a(t(new Boolean(false)), true, "Boolean object");
  7. a(t(new Date()), false, "Date");
  8. a(t(new String('raz')), false, "String object");
  9. a(t({}), false, "Plain object");
  10. a(t(/a/), false, "Regular expression");
  11. };