@yantrix/automata v0.6.0 • Docs
Yantrix API / @yantrix/automata / removeModelProperty
Function: removeModelProperty() ​
ts
function removeModelProperty<ObjectType, Key>(object, key): Omit<ObjectType, Key>Removes one own Object property without mutating the source Object.
Type Parameters ​
• ObjectType extends object
• Key extends PropertyKey
Parameters ​
• object: Exclude<ObjectType, readonly unknown[]>
• key: Key
Returns ​
Omit<ObjectType, Key>