Comment on Ask HN: What problem can I help you with?parentComments−adamredwoods4yYou could if the object was a known structure, but I needed a function that could be a utility for any object (some were quite large), something like:const newobj = insertIntoObject( obj, ["name:John", "hobby:*"], newdata )
Comments
You could if the object was a known structure, but I needed a function that could be a utility for any object (some were quite large), something like:
const newobj = insertIntoObject( obj, ["name:John", "hobby:*"], newdata )