1.0.7 • Published 1 year ago

sort-the-array v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install sort-the-array --save-dev

Import

Example: test.cjs file extension
const { sortNumbers, sortStrings } = require('sort-the-array');

Usage

const numbers = [4, 2, 7, 1, 5];
const strings = ['banana', 'apple', 'orange', 'grape'];

console.log('Sorted numbers:', sortNumbers(numbers)); // Sorted numbers: [ 1, 2, 4, 5, 7 ]
console.log('Sorted strings:', sortStrings(strings)); // Sorted strings: [ 'apple', 'banana', 'grape', 'orange' ]
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago