MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / not

Function not

packages/@contentlayer/utils/src/index.ts:65–67  ·  view source on GitHub ↗
(guard: (_: T) => _ is TGuarded)

Source from the content-addressed store, hash-verified

63
64export const not =
65 <T, TGuarded extends T>(guard: (_: T) => _ is TGuarded) =>
66 (el: T): el is Exclude<T, TGuarded> =>
67 !guard(el)
68
69export const errorToString = (error: any) => {
70 const stack = process.env.CL_DEBUG ? error.stack : undefined

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected