Skip to content
Advertisement

I want to compares the difference between two objs but ignore some key

I’m using Lodash to compare two objects returned from Postman but I want to ignore the dynamic values (page_view and deletion.update_time). How can I do this? I’ve tried passing in the property names into omit but it’s not working… how can I resolve this issue? Thank you.

JavaScript

Advertisement

Answer

You need to specify this on the sub-object:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement