2 Matching Annotations
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
However, this will only walk the object shallowly. To do it deeply, you can use recursion:
-
Note that if you're willing to use a library like lodash/underscore.js, you can use _.pick instead. However, you will still need to use recursion to filter deeply, since neither library provides a deep filter function.
-