Best way to remove index object from the array of object.