Interested in sponsoring this lovely little spot?

flip Modifier

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"}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →