Tuesday 6 June 2017

Copy all but one field with Lodash

If I have an object like so:

let obj  = {

 A:
B:
C:
D:


}

How can I copy all key/values except for C?

Underscore had _.pick() functionality, but I am looking to do the opposite.

Sorry I am on my phone will clean up question asap.



via Alexander Mills

No comments:

Post a Comment