MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / isFunction

Function isFunction

src/compute-engine/numerics/interval.ts:28–36  ·  view source on GitHub ↗
(
  expr: Expression | null | undefined,
  operator?: string
)

Source from the content-addressed store, hash-verified

26}
27
28function isFunction(
29 expr: Expression | null | undefined,
30 operator?: string
31): expr is Expression & FunctionInterface {
32 return (
33 expr?._kind === 'function' &&
34 (operator === undefined || expr!.operator === operator)
35 );
36}
37
38/**
39 * Pure endpoint read for an `Interval` function expression: each endpoint

Callers 2

intervalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected