MCPcopy Index your code
hub / github.com/simstudioai/sim / getTrimmedString

Function getTrimmedString

apps/sim/blocks/blocks/trello.ts:8–15  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

6import type { TrelloResponse } from '@/tools/trello'
7
8function getTrimmedString(value: unknown): string | undefined {
9 if (typeof value !== 'string') {
10 return undefined
11 }
12
13 const trimmed = value.trim()
14 return trimmed.length > 0 ? trimmed : undefined
15}
16
17function parseStringArray(value: unknown): string[] | undefined {
18 if (Array.isArray(value)) {

Callers 1

trello.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected