Js Reduce Return Array Php Push To Start Off Transition