isSafeObjectEntry | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function isSafeObjectEntry

    • Check whether an object's [key, value] entry has a safe property name. Uses isSafePropertyName to check the key. The value is not checked.

      Parameters

      • entry: readonly [string, unknown]

        [key, value] pair to check

      Returns boolean

      Whether the entry's key passes the property name checks

      const entries = Object.entries(obj).filter(isSafeObjectEntry);