Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sort-the-array

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-the-array - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "sort-the-array",
"version": "1.0.3",
"version": "1.0.4",
"description": "sorting the array",

@@ -5,0 +5,0 @@ "main": "index.cjs",

@@ -1,1 +0,19 @@

# sorting-array
## Installation
```bash
npm install sort-the-array --save-dev
```
## Import
```bash
Example: test.cjs
const { sortNumbers, sortStrings } = require('sort-the-array');
```
## Usage
```bash
const numbers = [4, 2, 7, 1, 5];
const strings = ['banana', 'apple', 'orange', 'grape'];
console.log('Sorted numbers:', sortNumbers(numbers));
console.log('Sorted strings:', sortStrings(strings));
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc