Removes splice/slice usage for typed arrays