Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9582864
url.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
460 B
Referenced Files
None
Subscribers
None
url.ts
View Options
import
{
stringify
}
from
"qs"
;
function
cleanParams
(
params
:
any
)
{
if
(
typeof
params
!==
"object"
)
{
return
params
;
}
for
(
const
key
in
params
)
{
if
(
params
[
key
]
===
undefined
||
params
[
key
]
===
""
)
{
delete
params
[
key
];
}
else
{
params
[
key
]
=
cleanParams
(
params
[
key
]);
}
}
return
params
;
}
export
default
function
url
(
path
:
string
,
params
:
{
[
i
:
string
]
:
any
})
{
params
=
cleanParams
(
params
);
return
`
${
path
}
?
${
stringify
(
params
)
}
`
;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Oct 11, 08:03 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984009
Default Alt Text
url.ts (460 B)
Attached To
Mode
rCOS Cosealious
Attached
Detach File
Event Timeline
Log In to Comment