mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
13 lines
196 B
JavaScript
13 lines
196 B
JavaScript
function isSymbol(s) {
|
|
return s != null;
|
|
}
|
|
|
|
function isKey(value, object) {
|
|
if (value == null || isSymbol(value)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
module.exports = isKey;
|