I have an object, and I would like to search in it by a string. The data in object contains that string I want to update that object so there will be just data that contains the string in the results.
I tried this code:
let obj = {320936614713847: "Nibaru", 612610972204514: "Slevníme", 633965056629062: "Eye of wisdom"}
let matches = obj.filter(s => s.includes(document.getElementById('pageSearchBox').value));
console.log(matches);