Created
January 22, 2015 11:58
-
-
Save calvintwr/74a1d27b497656fa08bf to your computer and use it in GitHub Desktop.
dottie set()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code | |
console.log(1); | |
console.log(user.dataMeta); | |
D.set(user, 'dataMeta.dataShop.shipping', req.body.data.dataShop.shipping); | |
console.log(2) | |
console.log(user.dataMeta); | |
//console output | |
1 | |
{ dataShop: { currency: 'usd', isShippingDataComplete: false } } | |
2 | |
{ dataShop: { shipping: { light: [Object] } } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment