MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / omit

Function omit

packages/utils/src/select.ts:14–21  ·  view source on GitHub ↗
(
	obj: T,
	...keys: K[]
)

Source from the content-addressed store, hash-verified

12
13// https://stackoverflow.com/questions/53966509/typescript-type-safe-omit-function
14export const omit = <T extends object, K extends keyof T>(
15 obj: T,
16 ...keys: K[]
17): Omit<T, K> => {
18 const _ = { ...obj };
19 keys.forEach((key) => delete _[key]);
20 return _;
21};

Callers 2

select.test.tsFile · 0.90
createChannelWithDepsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected