how to manipulate array in angular 8 by loop code example Example: type script array let list: number[] = [1, 2, 3];