mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2026-01-09 05:02:08 +00:00
5 lines
185 B
TypeScript
5 lines
185 B
TypeScript
import { tryCatchK } from "fp-ts/lib/Option";
|
|
|
|
export const safeEncodeURIComponent = tryCatchK(encodeURIComponent);
|
|
export const safeDecodeURIComponent = tryCatchK(decodeURIComponent);
|