effect-tree - v1.0.36
    Preparing search index...

    Function isEmptyPart

    • Type guard for the Empty Part.

      Parameters

      Returns self is Empty

      import {Draw} from 'effect-tree'

      const part1 = Draw.text('hello')
      const part2 = Draw.empty

      expect(Draw.isEmptyPart(part1), 'not empty').toBe(false)
      expect(Draw.isEmptyPart(part2), 'empty').toBe(true)