My current approach involves utilizing the lodash get()
method to retrieve values from an object.
However, there are instances where I need to obtain negated values. Unfortunately, simply applying a negate symbol or negate method after retrieving the value is not a viable option in my scenario due to the generic nature of the component using the get()
method. In most cases, I require the direct values obtained by get()
.
I am exploring if it's possible to pass a negate sign as an argument to the object path in the get
method. Something like - lodash.get('!styling.fullWidth')
The technologies I am working with include Javascript
and Vue.js
https://i.sstatic.net/qzU1N.png