MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / isNotEmpty

Function isNotEmpty

packages/backend/src/altNodes/altNodeUtils.ts:22–26  ·  view source on GitHub ↗
(
  value: TValue | null | undefined,
)

Source from the content-addressed store, hash-verified

20export const assignRectangleType = assignType("RECTANGLE");
21
22export function isNotEmpty<TValue>(
23 value: TValue | null | undefined,
24): value is TValue {
25 return value !== null && value !== undefined;
26}
27
28export const isTypeOrGroupOfTypes = curry(
29 (matchTypes: NodeType[], node: SceneNode): boolean => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected