UNPKG

cahir

Version:

flexible interface for method chaining using Proxy and tagged template literals

6 lines (5 loc) 121 B
import { Chain } from "./Chain.js" Chain.lambda = (f) => function (...args) { f?.call?.(...args); return this; }