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
/**
* A value a tool stored as the array it is, or an empty one when it is
* anything else.
*
* @param value a field of a tool's input or result
* @returns the array's items, unknown each
*/
export const arrayOf = (value: unknown): readonly unknown[] =>
Array.isArray(value) ? value : []