Type Array Object Typescript Vs Javascript Example