a faster remove method than splice for UNORDERED arrays. the value at indexToRemove is replaced
with the result of array.pop(). does not validate indices. if indexToRemove is >= array.length then
the pop() result is returned without any swapping.
Type Parameters
T extends TIndexable<any> & { length: number; pop: any }