I get the data: input
I need to find a match and assign it to a variable
How can I do that? ForEach dont work
console.log(input) // three
var ard = {
one: `chekertest`,
two: `chekertest`,
three: `chekertest`,
four: `chekertest`,
}
let text = []
for (const input in ard) {
// ???? like return result
text += input
}
I did it right, but it doesn't work for me for some reason.