R
R
Roman Rakzin2015-08-02 19:58:26
JavaScript
Roman Rakzin, 2015-08-02 19:58:26

Underscore/Lodash data selection _.where?

I select data for underscore
_.where(StudentsGroupList, {"GroupId": 1}
and how can I select where the values ​​of "GroupId" 1,2,3,4,5 ? With this method, it does not iterate over the same fields.
can you give an example on underscore or lodash with where or other iteration function?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-08-02
@alexey-m-ukolov

You don't _.where , but _.filter (there is an example).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question