try all indexes when getting an object
cast before checking unicity
Automatically rewritten for npm.