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

grand-array

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grand-array - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

README.md

18

index.js

@@ -224,3 +224,21 @@ module.exports = {

return count;
},
countOfPrime : function(arr){
for(let i = 2; i*i < arr.length; i++){
if(arr[i] !== "nope"){
for(let j = i*i; j < n; j += i){
arr[j] = "nope"
}
}
}
var primes = [];
for(let i = 0; i < arr.length; i++) {
if(arr[i] > 1){
primes.push(arr[i])
}
}
return primes.length;
}
}

2

package.json
{
"name": "grand-array",
"version": "1.0.0",
"version": "1.0.2",
"description": "Easy to use Array Manipulator with tons of Array Operations",

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

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