Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fathym_common/src/common/iterables/json-map-set/jsonMapSetReplacer.ts>jsonMapSetReplacer

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Latest
function jsonMapSetReplacer
import { jsonMapSetReplacer } from "https://deno.land/x/fathym_common@v0.2.160/src/common/iterables/json-map-set/jsonMapSetReplacer.ts";

Replacer function for Map/Set parsing.

Examples

From direct import

import { jsonMapSetReplacer } from "@fathym/common/iterables";

const objStr = JSON.stringify({}, jsonMapSetReplacer);

From common import

import { jsonMapSetReplacer } from "@fathym/common";

const objStr = JSON.stringify({}, jsonMapSetReplacer);

Parameters

_key: any

The key of the json property.

value: any

The value of the property.

Returns

any

The replaced value.