]> gerrit.simantics Code Review - simantics/district.git/blob - is-symbol.js
ac24b9abbff4e60039fc41d9ad4e7cbe7ef8fb63
[simantics/district.git] / is-symbol.js
1 'use strict';
2
3 var SymbolPoly = require('../polyfill');
4
5 module.exports = function (t, a) {
6         a(t(undefined), false, "Undefined");
7         a(t(null), false, "Null");
8         a(t(true), false, "Primitive");
9         a(t('raz'), false, "String");
10         a(t({}), false, "Object");
11         a(t([]), false, "Array");
12         if (typeof Symbol !== 'undefined') {
13                 a(t(Symbol()), true, "Native");
14         }
15         a(t(SymbolPoly()), true, "Polyfill");
16 };