Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 0e14067

Browse files
use undefined instead of null
1 parent fc741cf commit 0e14067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@
827827
return false;
828828
}
829829
var hasDupe = arr.filter( function (origItem) {
830-
if ( ctrl.search.toUpperCase() === undefined || origItem == null ) {
830+
if ( ctrl.search.toUpperCase() === undefined || origItem === undefined ) {
831831
return false;
832832
}
833833
return origItem.toUpperCase() === ctrl.search.toUpperCase();

0 commit comments

Comments
 (0)