import { pattern } from "commonfabric"; const identity = (value: T) => value; // FIXTURE: map-local-helper-call-root // Verifies: non-JSX pattern-owned map callbacks lift ordinary local helper // calls as whole callback-local lift-applied computations rather than lowering only the inner // receiver-method argument expression. // items.map((item) => identity(item.toUpperCase())) // -> mapWithPattern(..., ({ item }) => lift(({ item }) => identity(item.toUpperCase()))(...)) export default pattern<{ items: string[] }>(({ items }) => items.map((item) => identity(item.toUpperCase())) );