Is there a way in JavaScript to check if an object fits a sort of "template" without just checking each value individually?
i.e. I am loading a config.json file in a node.js app which I need to make sure has all of the necessary config options and fill with defaults for those that aren't present. I would prefer to just have a "default" config object and compare the loaded object against it and fill the missing data with the data from the default rather than comparing each individual key.
Object.assign.