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;