Skip to content

UseOmit

katanakit-js / useOmit

function useOmit<T, K>(obj, keys): Omit<T, K>;

Defined in: core/services/utils.service.ts:512

Omits the listed keys from an object, returning a shallow copy without them.

Type Parameter
T extends object
K extends string | number | symbol
Parameter Type
obj T
keys K[]

Omit<T, K>

useOmit(user, ["password"]);