1.0.5 • Published 5 months ago

number-swapper v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months 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

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago