var collection = {1: {}, 2: {}, 3: {}}; function find(collection, thisArg) { return collection[this.Arg.id]; }