/common-denominators

A JS function that takes any number of arguments and returns any array of all the common denominators of any numbers supplied

Primary LanguageJavaScriptMIT LicenseMIT

common-denominators

A JS function that takes any number of arguments and returns any array of all the common denominators of any numbers supplied

Install

with NPM

npm install common-denonimators

or with Yarn

yarn add common-denonimators

Usage

const commonDenominators = require('common-denominators');

commonDenominators(6, 12, 24, 30); // -> [1, 2, 3, 6]