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

    Function isRow

    • Type guard for the Row Part.

      Parameters

      Returns self is Draw.Row

      import {Draw} from 'effect-tree'

      const part1 = Draw.text('hello')
      const part2 = Draw.row.top.left([part1])

      expect(Draw.isRow(part1), 'not a row').toBe(false)
      expect(Draw.isRow(part2), 'a row').toBe(true)