menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Deepdash

Deepdash - tree traversal extension for Lodash

Channels
Team

omitDeep is not filtering "statistics" alone. Rest data is getting filtered

February 27, 2020 at 11:06am

omitDeep is not filtering "statistics" alone. Rest data is getting filtered

February 27, 2020 at 11:06am
let obj = { "statistics": {} }
When I tried on the documentation it works(filters) but in my code I am doing below (regex) let filteredRes = _.omitDeep(body, filtersArray); filtersArray is an array of regular expression. i did console filteredRes I get correct reg ex but final filtered data still has "statistics"

March 1, 2020 at 11:09am
Hi, share a working code please, from your message I've got no idea what is "body" and "filtersArray" so your question makes no sense. I tried to reproduce your code here:
please fork and update this codepen by adding your data and regexp