The API that doesn't exist
green belt
The task you gave the AI: Trim whitespace from both ends of every string in an array.
The AI produced strings.ts:
export function trimAll(items: string[]): string[] {
return items.map((s) => s.trimBoth());
}Before you trust it — what do you check?