The function flipped the arguments.
import { assertEquals } from "../deps.ts";
import { flip } from "./func.ts";
const fn = flip((a: string) => (b: string) => a + b);
assertEquals(fn("a")("b"), "ba");
assertEquals(fn("asd")("btg"), "btgasd");
Generated using TypeDoc
Flips two arguments of the function.