I have a simple program like:
var a = {\'a\': 1, \'b\': 2} console.log(a) console.log(a instanceof Array) console.log(a.constructor instanceof Array)
function isDict(v) { return typeof v==='object' && v!==null && !(v instanceof Array) && !(v instanceof Date); }