Answer the question
In order to leave comments, you need to log in
Object filtering in JS?
There is an object with values, you need to filter it - remove what does not fit the rules.
As far as I understand, the arr.filter method is applicable only to arrays?
To filter the values of an object, you need to convert it to an array, and only then filter it?
Answer the question
In order to leave comments, you need to log in
To filter objects, it is not necessary to use any special methods, loops are enough.
https://developer.mozilla.org/en/docs/Web/JavaScri...
https://developer.mozilla.org/en/docs/Web/JavaScri...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question