MCPcopy Create free account
hub / github.com/callstack/linaria / filterKey

Function filterKey

packages/react/src/styled.ts:40–42  ·  view source on GitHub ↗
(keys: TExclude[])

Source from the content-addressed store, hash-verified

38const isCapital = (ch: string): boolean => ch.toUpperCase() === ch;
39const filterKey =
40 <TExclude extends keyof any>(keys: TExclude[]) =>
41 <TAll extends keyof any>(key: TAll): key is Exclude<TAll, TExclude> =>
42 keys.indexOf(key as any) === -1;
43
44export const omit = <T extends Record<string, unknown>, TKeys extends keyof T>(
45 obj: T,

Callers 1

omitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…