REFACTOR: Use Array.isArray instead of _.isArray

This commit is contained in:
Robin Ward
2020-08-31 15:39:10 -04:00
parent b129abfc11
commit 2f11457263
7 changed files with 11 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ QUnit.module("lib:keyboard-shortcuts", {
_bindings[binding] = callback;
}.bind(this);
if (_.isArray(bindings)) {
if (Array.isArray(bindings)) {
bindings.forEach(registerBinding, this);
} else {
registerBinding(bindings);