Typescript New Array Javascript Append Function In Prologic