UNPKG

retort-js

Version:

Intuitive, production-ready prompt chaining in Javascript

15 lines (14 loc) 412 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function inlineTool(tool) { } inlineTool(({ x }) => ({ x })); let z = y["monkey"]; const alwaysStringProxy = new Proxy({}, { get: (target, prop, receiver) => { if (typeof prop === "string") { return prop in target ? target[prop] : ""; } return ""; } }); let x = alwaysStringProxy["monkey"];