prisma-map - v3.0.1
    Preparing search index...

    Function isPlainObject

    • Detects when an object is a plain object (like {key: 'value'}) only, excluding everything else that has a typeof result of 'object' (everything that's not a primitive).

      This is used in mapPrismaValues to detect when

      Parameters

      • value: unknown

      Returns value is AnyObject

      isPlainObject({}); // true
      isPlainObject({value: 'key'}); // true
      isPlainObject(null); // false
      isPlainObject(new RegExp()); // false
      isPlainObject(new Date()); // false