sort-the-array
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "sort-the-array", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "sorting the array", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
@@ -8,3 +8,5 @@ ## Installation | ||
```bash | ||
Example: test.cjs | ||
Example: test.cjs file extension | ||
``` | ||
```javascript | ||
const { sortNumbers, sortStrings } = require('sort-the-array'); | ||
@@ -14,3 +16,3 @@ ``` | ||
## Usage | ||
```bash | ||
```javascript | ||
const numbers = [4, 2, 7, 1, 5]; | ||
@@ -21,2 +23,2 @@ const strings = ['banana', 'apple', 'orange', 'grape']; | ||
console.log('Sorted strings:', sortStrings(strings)); | ||
``` | ||
``` |
2388
22