utility-hand
Advanced tools
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 }; |
{ | ||
"name": "utility-hand", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
718
17
0
2