Sha256: d238e26ef38018635faa649db9a83c346c004e26779e04545d07562e326147c3
Contents?: true
Size: 438 Bytes
Versions: 54
Compression:
Stored size: 438 Bytes
Contents
'use strict'; // https://262.ecma-international.org/5.1/#sec-8 module.exports = function Type(x) { if (x === null) { return 'Null'; } if (typeof x === 'undefined') { return 'Undefined'; } if (typeof x === 'function' || typeof x === 'object') { return 'Object'; } if (typeof x === 'number') { return 'Number'; } if (typeof x === 'boolean') { return 'Boolean'; } if (typeof x === 'string') { return 'String'; } };
Version data entries
54 entries across 53 versions & 4 rubygems