Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- makeDictionary = (input = []) => {
- const dictionary = input.reduce((dict, val) => Object.assign(dict, JSON.parse(val)), {});
- Object.keys(dictionary).sort().forEach(key => {
- console.log(`Term: ${key} => Definition: ${dictionary[key]}`);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement