Array Function In Typescript Angular Momentum