Typescript Convert Number Array Javascript Push Method