Skip to content

Commit

Permalink
Using built in isArray.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsinhijazee committed Oct 24, 2024
1 parent d6c9487 commit c742d2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/combobox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
afterTransition,
htmlToElement,
isParentOrElementHidden,
isArray,
} from '../../utils';

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

// Bullet proofing.
if (!isArray(items)) {
if (Array.isArray(items)) {
return
}

Expand Down

0 comments on commit c742d2c

Please sign in to comment.