Function objOmitKeysMutable

  • Deletes the specified keys from an object in a mutable way.

    Type Parameters

    Parameters

    • obj: O

      The object from which to delete the keys.

    • Rest ...keys: ObjectKey[]

      The keys to delete from the object.

    Returns O

    The modified object with the specified keys deleted.

    Typeparam

    V - The type of the values in the object.

    Example

    const obj = { a: 1, b: 2, c: 3 };
    objOmitKeysMutable(obj, 'a', 'c');
    //=> { b: 2 }

Generated using TypeDoc