Skip to content

unctionjs/flip

Repository files navigation

@unction/flip

Tests Stability Dependencies

MapperFunctionType<A, MapperFunctionType<B, C>> => B => A => C

Flips a function's first and second arguments.

flip(key)({aaa: "1"})("aaa") // "1"