i wanted to check if a value exists in an array and return true if it does and false if it dosent in an angular checkbox input field.
here is the code
<div style="margin-left: 20px;" *ngFor="let li of permissions;">
<nz-form-item *ngIf="li.entity === 'Staffs'">
<nz-form-control style="margin-bottom: -25px;">
<input type="checkbox" value="{{li.id}}" [checked]="li.id == select" name="staff">{{select}} - {{li.id}}
</nz-form-control>
</nz-form-item>
</div>
select is an array containg id of the selected checkbox values any help is appreciated.