Skip to content

Commit cfe7ee6

Browse files
committed
Using built in isArray.
1 parent f000c39 commit cfe7ee6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plugins/combobox/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
afterTransition,
1414
htmlToElement,
1515
isParentOrElementHidden,
16-
isArray,
1716
} from '../../utils';
1817

1918
import {
@@ -398,7 +397,7 @@ class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
398397
private jsonItemsRender(items: any) {
399398

400399
// Bullet proofing.
401-
if (!isArray(items)) {
400+
if (Array.isArray(items)) {
402401
return
403402
}
404403

0 commit comments

Comments
 (0)