Closed nkov closed 7 years ago
There were some situations where item was null, which actually has the strange case in javascript: typeof null === 'object', so this case caused an error on item.length. Deferring to the last case for when item is null works.
item
typeof null === 'object'
item.length
Thanks for the PR @nkov
There were some situations where
item
was null, which actually has the strange case in javascript:typeof null === 'object'
, so this case caused an error onitem.length
. Deferring to the last case for when item is null works.