I think it's more useful to return the array itself than the index of the element. the fact that you don't have to return the index of a single element means you can overload multiple items to be included - so it's more like array.concat, eg pseudo http://jsfiddle.net/NX7tF/1/