Skip to main content
Deno 2 is finally 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.
Go to Latest
function jsonMapSetReplacer
import { jsonMapSetReplacer } from "https://deno.land/x/fathym_common@v0.2.147-integration/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.