Here we translate the push() to an splice() at the highest index inside this nested then