Socket
Socket
Sign inDemoInstall

find-dividers

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-dividers

Find the number of dividers for a number.


Version published
Maintainers
1
Created
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

Package last updated on 24 Feb 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc