mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 10:37:56 +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;
|