mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 06:49:29 +08:00
12 lines
249 B
Text
12 lines
249 B
Text
'use strict';
|
|
|
|
var ES5Type = require('../5/Type');
|
|
|
|
// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
|
|
|
|
module.exports = function Type(x) {
|
|
if (typeof x === 'symbol') {
|
|
return 'Symbol';
|
|
}
|
|
return ES5Type(x);
|
|
};
|