Use toString == [Object Date]/[Object Array] instead of constructor property.
Use toString == [Object Date]/[Object Array] instead of constructor property.

* The constructor property is both less reliable and not supported in
  all browsers (e.g. IE9).

* jQuery provides $.type() which does a toString on the object,
  and grabs the native constructor from there (only works for
  native constructors like Date and Array, not for custom ones).

* For Array, $type == 'array' works fine, but isArray is faster
  because it utilizes the native Array.isArray method in modern
  browsers and falls back to using $.type().


Krinkle/jquery-json,yangxing-star/jquery-json,allsmy/jquery-json,an-yun/jquery-json,allsmy/jquery-json,yangxing-star/jquery-json,timedepths/jquery-json,an-yun/jquery-json,jkesselring/jquery-json,jkesselring/jquery-json,Krinkle/jquery-json,timedepths/jquery-json