@ifunc/flip

1.0.0 • Public • Published

@ifunc/flip

flip first two arguments of a function

import flip from '@ifunc/flip';


flip(Array)('a', 'b') // ['b', 'a'];
flip(Math.pow)(2, 10) // 100
flip(console.log)(1, 2, 3) // 2, 1, 3

Package Sidebar

Install

npm i @ifunc/flip

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

979 B

Total Files

3

Last publish

Collaborators

  • yipinshu