Typescript Get Max Date In Array Javascript Push Function In Data