Javascript array filter by object property

Published: 01 January 1970
on channel: Samovar tutorials
535
6

Array of objects filtered by property

How to select objects from an array by object property.
For example, we need to select employees of the sales department from the general list of employees.
So, we have a general list of employees.
Different names, different departments.
We only need a sales department.
Let's use the "filter" method.
Let's compare the "department" property of the object with the name of the department.
So we got it.


On this page of the site you can watch the video online Javascript array filter by object property with a duration of hours minute second in good quality, which was uploaded by the user Samovar tutorials 01 January 1970, share the link with friends and acquaintances, this video has already been watched 535 times on youtube and it was liked by 6 viewers. Enjoy your viewing!