This looks to me like simply a convenience helper function in case you do not know if your input/data is alpha 2 or alpha 3? I would rather keep this library as simple and "dumb" as possible. If you need a way to guess whether your data is alpha 2 or alpha 3, I suggest you write a helper function in your codebase, similar to what you did here.
This looks to me like simply a convenience helper function in case you do not know if your input/data is alpha 2 or alpha 3? I would rather keep this library as simple and "dumb" as possible. If you need a way to guess whether your data is alpha 2 or alpha 3, I suggest you write a helper function in your codebase, similar to what you did here.