You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I'd like to prevent the target's value from being modified in unflatten. There's probably a number of ways to approach it but here's what I was thinking:
// prevent modifying any object with a value of 'testValue'unflatten(obj,{filter: {value: 2}})// prevent modifying any object with a key of 'thing'unflatten(obj,{filter: {key: 'thing'}})// prevent modifying the object {thing: 2}unflatten(obj,{filter: {key: 'thing',value: 2}})
The text was updated successfully, but these errors were encountered:
I have a use case where I'd like to prevent the
target
's value from being modified inunflatten
. There's probably a number of ways to approach it but here's what I was thinking:The text was updated successfully, but these errors were encountered: