Typescript Map Type To Array Javascript Length Of Integer In Java