mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Use Array.isArray instead of _.isArray
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user