After testing out instasnceof I found that it will return true if the argument is an array or an object literal.
instasnceof
function test(options){ if(option
If you're trying to forbid arrays, you can just do this:
var isObject = options instanceof Object; var isArray = options instanceof Array; if(isObject && !isArray) { alert('yes'); }