Skip to content

Instantly share code, notes, and snippets.

@MattieBelt
Created May 22, 2020 13:34
Show Gist options
  • Save MattieBelt/cc2285edd70ae8c491e6db21999f8b60 to your computer and use it in GitHub Desktop.
Save MattieBelt/cc2285edd70ae8c491e6db21999f8b60 to your computer and use it in GitHub Desktop.
const es = require('./es');
const en = require('./en');
const newKeys = Object.keys(en).filter(x => !Object.keys(es).includes(x));
newKeys.forEach(key => {
es[key] = en[key];
});
console.log(es);
console.log(`Total new keys: ${newKeys.length}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment