Function leaf_map

  • Parameters

    • value: any

    Returns any

    Stability

    2 - provisional

    Constructs a uoe-map object with only a single leaf value.

    Example

    const first_name = leaf_map("john");
    const last_name = leaf_map(Promise.resolve("doe"));

    console.log(await first_name()); // "john"
    console.log(await last_name()); // "doe"

Generated using TypeDoc