Typescript Mapped Type Array In Typescript Vs Jquery