Below is a simple filter function that filters Rec_pagedItems in an array called allItems.
someval(value){
if(value.length>=5){
this._pagedItems= this.allItems.find(e=>e.uniqueid == value || e.name == value );
if(this._pagedItems == undefined){
this.pagedItems=null;
}
else{
this.pagedItems=[];
this.pagedItems.push(this._pagedItems);
}
}
}
When the code is modified to remove ||, like
this._pagedItems= this.allItems.find(e=>e.uniqueid == value );
, it works differently.