Library API
    Preparing search index...

    Function countProperties

    • Returns the count of enumerable own properties on an object.

      Parameters

      • obj: {} = {}

        The object to count properties of

      Returns number

      The number of properties

      const count = countProperties({ a: 1, b: 2 }); // 2