mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Catch undefined on makeSearchableList
This commit is contained in:
parent
921a25e758
commit
12b6578dd5
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ export function makeSearchableList ( listSet ) {
|
||||||
])
|
])
|
||||||
|
|
||||||
listSet.forEach( ( searchableItem ) => {
|
listSet.forEach( ( searchableItem ) => {
|
||||||
|
|
||||||
|
if ( typeof searchableItem === 'undefined' ) {
|
||||||
|
throw new Error('searchableItem is undefined')
|
||||||
|
}
|
||||||
|
|
||||||
// If this is the first items
|
// If this is the first items
|
||||||
// then store the keys
|
// then store the keys
|
||||||
if ( firstLoop ) {
|
if ( firstLoop ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue