In this episode, we look at 2 functions to encode and decode a bitmask for a set of configuration flags. This is a great way to efficiently store user or app settings. As always, the code for this snippet can be found here:

https://codepen.io/walpolea/pen/WNNwaBq?editors=0012


This episode is sponsored by ยท Anchor: The easiest way to make a podcast. https://anchor.fm/app


Send in a voice message: https://anchor.fm/codesnippet/message Support this podcast: https://anchor.fm/codesnippet/support