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 an object which i like to change one of the nested values
let the object be foldersData
then I run this code on lodash website: let x= _.set({categories:foldersData} , "categories.folders[0].topicData.open" , 30023)
which results in 30023
but when i run the EXACT code on vscode i GET TRUE(which is prevous value of given path)
which means that set is not working at all
strange thing is that I try the original example of https://lodash.com/docs/4.17.15#set and I am fine.
but with my own object it is not doing anything
The text was updated successfully, but these errors were encountered:
i have an object which i like to change one of the nested values
let the object be foldersData
then I run this code on lodash website:
let x= _.set({categories:foldersData} , "categories.folders[0].topicData.open" , 30023)
console.log("what",_.get(x , "categories.folders[0].topicData.open" , "nabbodd"))
which results in 30023
but when i run the EXACT code on vscode i GET TRUE(which is prevous value of given path)
which means that set is not working at all
strange thing is that I try the original example of https://lodash.com/docs/4.17.15#set and I am fine.
but with my own object it is not doing anything
The text was updated successfully, but these errors were encountered: