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

utility-hand

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utility-hand - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

19

index.js

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

Array.prototype.numSort = function () {
for (let i = 0; i < this.length; i++) {
for (let j = 0; j < this.length - i - 1; j++) {
if (this[j] > this[j + 1]) {
let temp = this[j];
this[j] = this[j + 1];
this[j + 1] = temp;
}
}
}
return this;
}
function helloNpm() {
return "hello NPM"
// Exporting a function that uses the Array.prototype.numSort
function sortArray(arr) {
return arr.numSort();
}
module.exports = helloNpm
module.exports = { sortArray };

2

package.json
{
"name": "utility-hand",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

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