MCPcopy
hub / github.com/didi/mpx / encode

Function encode

packages/utils/src/url.js:3–5  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1import { isArray, type, forEach } from './base'
2
3function encode (val) {
4 return encodeURIComponent(val)
5}
6
7function decode (val) {
8 return decodeURIComponent(val)

Callers 1

serializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected