Can a variable be tested to determine if it is a primitive data type?
I've come across many inquiries about testing a variable to check if it is an object, but not specifically for a primitive type.
This inquiry is purely academic, as I do not require this test in my own code. I simply want to enhance my knowledge of JavaScript.