Answer the question
In order to leave comments, you need to log in
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 )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question