I have a value and want to know if it\'s an iteratable object literal, before I iterate it.
How do I do that?
Say you have some testvar and want to see if it is an object, but not an array or null (these are both of type Object). You can do the following
testvar
testVar instanceof Object && !Array.isArray(testVar) && testVar !== null