Typescript Object Property Type Function Js Mdn Array Concat In Javascript