Module

x/yaml/src/doc/applyReviver.ts>applyReviver

YAML parser and stringifier for JavaScript
Latest
function applyReviver
import { applyReviver } from "https://dotland.deno.dev/x/yaml@v2.6.0/src/doc/applyReviver.ts";

Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec, in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the 2021 edition: https://tc39.es/ecma262/#sec-json.parse

Includes extensions for handling Map and Set objects.

Parameters

reviver: Reviver
obj: unknown
key: unknown
val: any