Skip to content

Comment on Ask HN: What problem can I help you with?parent

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 )

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.