Add positionOf to find the indexOf an object given key value