Newer
Older
2024-Tsubasa / system / websocket_test / node_modules / es6-symbol / is-symbol.js
@tsubasa tsubasa on 11 Mar 2024 280 bytes add:directory
"use strict";

module.exports = function (value) {
	if (!value) return false;
	if (typeof value === "symbol") return true;
	if (!value.constructor) return false;
	if (value.constructor.name !== "Symbol") return false;
	return value[value.constructor.toStringTag] === "Symbol";
};