Js Push Function Into Array Methods In Typescript