mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +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;
|