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.