I try to push the value if id is not match


#1

I try to push value into an array if id is not match . but it’s push equal to value as well as not equal to value
below my code

 for(let i=0; i<this.allVideoSubject.length; i++) {
      for(let j=0; j<this.all.length; j++) {
        if(this.all[j].subjectId !== this.allVideoSubject[i].vdoSub_id) {     this.paidVideo.push({"subjectId":this.all[j].subjectId,"subjectName":this.allVideoSubject[i].vdoSub_name});
          //alert(JSON.stringify(this.paidVideo))
        }
      }

please help me out
any help appreciated
Thanks