code: function isPrimitiveType (obj) {
    return ( typeof obj === 'boolean' ||
         typeof obj === 'number' ||
         typeof obj === 'string' ||
         obj === null ||
         util.isDate(obj) ||
         util.isArray(obj));
  }
docs: Tells if an object is a primitive type or a "real" object
  Arrays are considered primitive