invert()
Creates the inverse of an object by making a new object where the keys are the values and the values are the keys.
This function is valid in v2.7.0 to v2.24.3. This function has been downloaded 61 times.{}
obj
to opt_initial
where all of the keys added will be the values from obj
and all of the corresponding values will be the keys.This function directly requires the following function which is included automatically:
entries()