mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
fd22b0bf58
V2 (Laravel re-make)
10 lines
280 B
JavaScript
Vendored
10 lines
280 B
JavaScript
Vendored
"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";
|
|
};
|