emmett.js
function isPlainObject(v) {
    return v &&
           typeof v === 'object' &&
           !Array.isArray(v) &&
           !(v instanceof Function) &&
           !(v instanceof RegExp);
  }
function isPlainObject(v) {
    return v &&
           typeof v === 'object' &&
           !Array.isArray(v) &&
           !(v instanceof Function) &&
           !(v instanceof RegExp);
  }
function isPlainObject ( v ) { return v && typeof v === 'object' && ! Array . isArray ( v ) && ! ( v instanceof Function ) && ! ( v instanceof RegExp ) ; }
Is the given variable a plain JavaScript object?

@param  {mixed}  v   Target.
@return {boolean}    The boolean result.
Is the given variable a plain JavaScript object?