This simple code snippet comprises my answer to this Stack Overflow question:
https://stackoverflow.com/a/65451184/2176546
View source code