Function map

  • Extends the map function with ec language syntax.

    Parameters

    • arg: any
    • Rest ...expressions: any[]

    Returns ((...args) => any)

      • (...args): any
      • Parameters

        • Rest ...args: any[]

        Returns any

    Example

    const person = map(`
    :name "david";
    :age 20;
    :personality :awesome;
    `);

    console.log(await person.name);
    console.log(await person.age);
    console.log(await person.personality);

Generated using TypeDoc