1.0.5 • Published 2 years ago

number-swapper v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

number-swapper

A simple npm module to swap two numbers.

Installation

You can install the number-swapper module using npm:

npm install number-swapper

Example

const swapNumbers = require('number-swapper');

const a, b = 5, 10;

const swapped = swapNumbers(a, b);

console.log(Original: a=${a}, b=${b});

console.log(Swapped: a=${swapped[0]}, b=${swapped[1]});

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago