DEV Community

Discussion on: How to create an autocomplete input with plain Javascript

Collapse
 
udus97 profile image
Qudus

Hi, Afam
This is a great article; its good to see this implementation in Vanilla JS. But i'd like to know the reason why you are testing for this condition in your JS file

!isNaN(input.value)

Thanks.

Collapse
 
stephenafamo profile image
Stephen Afam-Osemene

Thanks for spotting that. There's actually no reason for that in the example.
It was specific code for a project.

I'll edit.