replaced == with === in _.indexOf function to test for number