Helper function to do true type checking. See https://gomakethings.com/true-type-checking-with-vanilla-js/
Helper function to do true type checking. See https://gomakethings.com/true-type-checking-with-vanilla-js/