Object
Invert the keys and values of an object
Given an object returns a new object with the keys and values reversed.
import { invert } from 'radash'
const powersByGod = {
ra: 'sun',
loki: 'tricks',
zeus: 'lighning'
}
invert(gods) // => { sun: ra, tricks: loki, lightning: zeus }