Skip to main content

All Questions

7 votes
2 answers
5k views

"Invert" a JavaScript object hash whose values are arrays to produce a new object hash with keys as the elements of those original value vectors

Background lodash and underscore have an invert function that takes an object hash and converts it to a new one, which has keys as the input object's values and ...
Ahmed Fasih's user avatar