Swaps the keys with their corresponding values. The old switcharoo.
favorites: food: burger drink: soda
{{ favorites | json }}{{ favorites | flip | json }}
{"food":"burger","drink":"soda"}{"burger":"food","soda":"drink"}
flip
ModifierSwaps the keys with their corresponding values. The old switcharoo.
favorites: food: burger drink: soda
{{ favorites | json }}{{ favorites | flip | json }}
{"food":"burger","drink":"soda"}{"burger":"food","soda":"drink"}
Submit improvements, related content, or suggestions through Github.
Betterify this page →