mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 09:03:37 +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; |