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

Function optionalTrim

apps/sim/tools/sharepoint/utils.ts:6–10  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

4const logger = createLogger('SharepointUtils')
5
6export function optionalTrim(value: unknown): string | undefined {
7 if (value === undefined || value === null) return undefined
8 const trimmed = String(value).trim()
9 return trimmed || undefined
10}
11
12export function escapeODataString(value: string): string {
13 return value.replace(/'/g, "''")

Callers 8

get_list.tsFile · 0.90
read_page.tsFile · 0.90
create_list.tsFile · 0.90
create_page.tsFile · 0.90
upload_file.tsFile · 0.90
add_list_items.tsFile · 0.90
list_sites.tsFile · 0.90
update_list.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected