Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ isArray,
type
, forEach } from
'./base'
2
3
function
encode (val) {
4
return
encodeURIComponent(val)
5
}
6
7
function
decode (val) {
8
return
decodeURIComponent(val)
Callers
1
serialize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected