Vinyl
    Preparing search index...

    Function ownKeys

    • Returns the keys (both property names and symbols) of all own properties. Unlike Object.keys, this will also return non-enumerable properties. Does not return keys inherited from the object's prototype.

      Implementation details: If Reflect is supported, Reflect.ownKeys will be used, wrapping in a Set, otherwise Object.getOwnPropertyNames and Object.getOwnPropertySymbols will be used. This will typically be equivalent. Proxies may alter the order of keys but platforms that do not support Reflect will also typically not support Proxies.

      Type Parameters

      • T

      Parameters

      • obj: T

      Returns Set<keyof T>

      Returns a Set of the own properties of the target object, including non-enumerable. The ordering will be: positive numeric indexes in order, strings in insertion order, symbols in insertion order.

      • Reflect.ownKeys
      • Object.getOwnPropertyNames
      • Object.getOwnPropertySymbols