_.indexOf can take a function