Library API
    Preparing search index...

    Function hasNoneOf

    • Asserts whether an object possesses NONE of the specified keys (using the in operator, unwrapping Proxies if present). Safe against null, undefined, and non-object primitives (returns true for non-objects).

      Parameters

      • obj: unknown

        The target object to inspect

      • ...keys: PropertyKey[]

        Property keys that must not exist on the target

      Returns boolean

      True if none of the specified keys exist on the target

      Errors from proxy traps or getters used while unwrapping or checking keys propagate to the caller.

      if (hasNoneOf(item, 'name', 'key', 'install')) { ... }