swc/ecmascript/minifier/tests/compress/fixture/issues/2028/output.js
강동윤 9793926cc8
fix(es/minifier): Fix bugs and implement more rules (#2032)
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)
2021-08-08 14:19:04 +00:00

8 lines
154 B
JavaScript

function isSymbol(s) {
return null != s;
}
function isKey(value, object) {
return !!(null == value || isSymbol(value));
}
module.exports = isKey;