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