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