@tempots/std

removeObjectFields() function

Removes specified fields from an object and returns a new object without those fields.

Signature:

removeObjectFields: extends object, F extends Array>(ob: T, ...fields: F) => OmitTupleToUnion>

Parameters

Parameter

Type

Description

ob

T

The object from which fields will be removed.

fields

F

The fields to be removed from the object.

Returns: OmitTupleToUnion>

A new object without the specified fields.