Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>flip

Faster and smaller alternative to Ramda
Latest
function flip
import { flip } from "https://deno.land/x/rambda@9.3.0/mod.ts";

It returns function which calls fn with exchanged first and second argument.

Parameters

fn: (arg0: T, arg1: U) => TResult

Returns

(arg1: U, arg0?: T) => TResult