code: function isPlainObject(value) {
    return value &&
           typeof value === 'object' &&
           !Array.isArray(value) &&
           !(value instanceof Date) &&
           !(value instanceof RegExp);
  }
docs: Helpers