Socket
Socket
Sign inDemoInstall

find-dividers

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    find-dividers

Find the number of dividers for a number.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
2.57 kB
Created
Weekly downloads
 

Readme

Source

node-find-dividers

Find all dividers for a given number.

Usage

const dividers = require('find-dividers');

let count = dividers(100);
console.log(count); // => 9

API

function dividers(n, excludeOne = true)

Finds all dividers for a given number.

Parameters
NameTypeDescription
nnumberThe number to find dividers for.
excludeOnebooleanWhether to exclude the number 1.
Returns

An array with all found dividers.

License

MIT

FAQs

Last updated on 24 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc