5 ms·
write a quick lodash method call to filter your collection. given the consistent nature of data collections I almost never have a need to examine the full data
by jordache 10y ago
write a quick lodash method call to filter your collection.
given the consistent nature of data collections I almost never have a need to examine the full dataset via some front end debugging tool. trust the data to be consistent or not?
- amw-zero 10y agoDefinitely do whatever you think is easier in your workflow. Not everyone uses lodash, but I know a lot of people that prefer to do mapping / filtering of JSON in an actual programming language. That doesn't make one way better or worse than another. 2 ways of accomplishing the same thing. Not sure what the point about consistency has to do with anything? What if it's an array of consistent, but large objects? I find I need to examine a full page of JSON quite frequently. I.e. there's some bug, and I need to check for any occurrences of null for a specific property.