Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

prop

import { prop } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

access to a property value by static key

@example
// returns "[1,2,3].length"
prop(List(1,2,3), "length")
@example
// returns "{a:{b:2}}.a.b"
prop(Record({ a: { b: 2 } }), "a", "b")
function prop(...keys: string[]): string;
§
prop(...keys: string[]): string
[src]

§Parameters

§
...keys: string[] optional
[src]

§Return Type

§
string
[src]