Typescript Max Date In Array Javascript Documentation Mdn