@flycoders_sourav wrote:
actually i want to checking at the time of pushing the value into the array. If duplicate then the value will not push.how can i do that.
public selectcity:any=[];
public test: any = [];
i want to push the whole value into thetest
array. when pushing the value fromselectcity
array at the time. i want to check If duplicate then the value will not push.how can i do that.below my array push code:
for(let i =0;i<this.selectcity.length;i++){ this.test.push(this.selectcity[i]); }
please help me any one
Posts: 1
Participants: 1