MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / omit

Function omit

backend/src/utils/misc.ts:230–240  ·  view source on GitHub ↗
(
  obj: T,
  keys: K[],
)

Source from the content-addressed store, hash-verified

228};
229
230export function omit<T extends object, K extends keyof T>(
231 obj: T,
232 keys: K[],
233): Omit<T, K> {
234 const result = { ...obj };
235 for (const key of keys) {
236 // oxlint-disable-next-line no-dynamic-delete
237 delete result[key];
238 }
239 return result;
240}
241
242export function isPlainObject(value: unknown): boolean {
243 return (

Callers 13

getLiveConfigurationFunction · 0.90
getResultsMethod · 0.90
getResultsMethod · 0.90
convertFunction · 0.90
addResultFunction · 0.90
getRelevantUserInfoFunction · 0.90
getLeaderboardFunction · 0.90
getRankFromLeaderboardFunction · 0.90
cleanApeKeyFunction · 0.90
editPresetFunction · 0.90
getFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected