Library API
    Preparing search index...

    Function exclude

    • Mutates an object or array by deleting properties that match specified primitive types.

      Type Parameters

      Parameters

      • obj: T

        The object or array to mutate

      • ...types: (
            | "string"
            | "number"
            | "bigint"
            | "boolean"
            | "symbol"
            | Primitives
            | "null"
            | "void"
        )[]

        The primitive types to exclude (e.g., 'Function', 'String')

      Returns T

      The mutated object reference

      exclude({ a: 1, b: () => {} }, 'Function'); // { a: 1 }