Vertex Viewer SDK
    Preparing search index...

    Function isPlainObject

    • Returns true if this is a plain object, which is defined by a type created by the Object constructor. Returns false otherwise.

      Parameters

      • obj: unknown

      Returns boolean

      isPlainObject(Object.create({})); //=> true
      isPlainObject(Object.create(Object.prototype)); //=> true
      isPlainObject({foo: 'bar'}); //=> true
      isPlainObject({}); //=> true

      isPlainObject(1); //=> false
      isPlainObject(['foo', 'bar']); //=> false
      isPlainObject([]); //=> false
      isPlainObject(new Foo); //=> false
      isPlainObject(null); //=> false
      isPlainObject(Object.create(null)); //=> false