MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeURLSearchParams

Function encodeURLSearchParams

packages/effect/src/SchemaGetter.ts:1794–1801  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1792 * @since 4.0.0
1793 */
1794export function encodeURLSearchParams(): Getter<URLSearchParams, unknown> {
1795 return transform((input) => {
1796 if (typeof input === "object" && input !== null) {
1797 return new URLSearchParams(collectURLSearchParamsEntries(input))
1798 }
1799 return new URLSearchParams()
1800 })
1801}
1802
1803const INDEX_REGEXP = /^\d+$/
1804

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected