Dynamic Object Keys in JavaScript
Imagine you're tasked to create a function that creates and returns an object literal from the keys and values that are fed into it as its arguments.
At first go, you might be tempted to go with something like this:
function objectMaker(keys, values)...
abinjohn.in4 min read