Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
413 B
Raw Blame
import type { RenderElement } from 'claude-code'

import { keptOf } from '../../../kept-of'

/**
 * The children that are there: nulls dropped, so a part may answer null for
 * "nothing to draw" and the parent lists it all the same.
 *
 * @param children elements or nulls
 * @returns the elements
 */
export const present = (
  children: readonly (RenderElement | null)[],
): RenderElement[] => keptOf(children)