JS: fix typo

This commit is contained in:
Asger F
2019-01-08 12:22:26 +00:00
parent ad6add383c
commit f4c89601ff

View File

@@ -34,7 +34,7 @@
let key = "$" + name;
obj[key](); // NOT OK
if (typeof obj[key] === 'function')
obj[key](); // OK - but stil flagged
obj[key](); // OK - but still flagged
if (typeof fn === 'function') {
fn.apply(obj); // OK