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

is-prime-number

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-prime-number - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

index.d.ts

2

package.json
{
"name": "is-prime-number",
"version": "2.0.2",
"version": "2.1.0",
"description": "Returns boolean of if provided number is prime.",

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

@@ -1,4 +0,4 @@

# IsPrimeNumber - JavaScript
# is-prime-number
The `is-prime-number` module determines whether the passed value is a prime number.
Node.js JavaScript module to determine whether the passed value is a prime number.

@@ -9,13 +9,13 @@ ```bash

### Syntax
## Syntax
```javascript
isPrime(value)
isPrime(value);
```
#### Parameters
### Parameters
- `value` The value to be tested for being a prime number.
#### Return value
### Return value
A `boolean` indicating whether or not the given value is a prime number.
### Examples
## Examples
```javascript

@@ -22,0 +22,0 @@ const isPrime = require('is-prime-number');

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