map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function propertyNames

    • Helper to introspect the public available property names.

      Parameters

      • instance: any

        the instance to introspect.

      • skipOwn: boolean = false

        skip additional object property names that were not part of the original declare().

      Returns string[]

      property names

      const Clazz = declare({
      firstName: "",
      lastName: ""
      });
      const instance = new Clazz();
      const names = propertyNames(instance);
      //-> names === ["firstName","lastName"]