Right now I am working on a search system but for a table that holds data with names but I want to know how to use the includes() Method I dont think you can use it with an array but yeah. An Example is this.
const array = {nicecool:"hi"}
function findarrayincludesname(array,includes) {
var includesa = {}
for (let i=1; i<array.length; i++) {
if (array.includes(includes) {
includesa.push(eval(array.+"idkhowtogetarraychildname"))
}
}
return includesa
}
console.log(findarrayincludesname(array,"nice")
the code really explains a lot but I need a fast solution that would not take much time to load and not hackable.
So if you have any single answer please I will be needing it for my online platform