mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
9793926cc8
swc_ecma_minifier: - Fix an infinite loop. (#2028) - Don't remove span hygiene. (#2022) swc_ecma_codegen: - Fix codegen of `return` with `async` arrow. (#2020) swc: - Respect `minify = false`. (#2019)
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; |