A
A
Alexander N2021-01-15 14:17:12
Mozilla Firefox
Alexander N, 2021-01-15 14:17:12

Mozzila returns an empty list, why?

It works fine in all browsers, the mozilla returns empty (Brought
the function to the most dry form)

const muFunc = data =>{
let catalog = [{id: 229, level: "bla bla"},{id: 239, level: "bla bla"}]
let arr = catalog.filter(x=>x['level'] === data)
console.log('list', arr) // arr = []
}

let dataTest = 'bla bla'
muFunc(dataTest )

What's wrong with her?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question