replace [].indexOf with _.indexOf