Skip to content

Latest commit

 

History

History
141 lines (93 loc) · 2.42 KB

README.md

File metadata and controls

141 lines (93 loc) · 2.42 KB

Nice Numbers

Installation

Using npm:

$ npm i nice-numbers

Usage

Checks

checkComposite(number: number) => boolean
checkCube(number: number) => boolean
checkEven(number: number) => boolean
checkFactorial(number: number) => boolean
checkFibonacci(number: number) => boolean
checkNegative(number: number) => boolean
checkOdd(number: number) => boolean
checkPrime(number: number) => boolean
checkPositive(number: number) => boolean
checkSquare(number: number) => boolean

Sequences

cubeSequence(start?: number, length?: number) => number[]
cubeSequence(start?: number, length?: number) => number[]
evenSequence(start?: number, length?: number)
factorialSequence(start?: number, length?: number)
fibonacciSequence(start?: number, length?: number)
naturalSequence(start?: number, length?: number)
oddSequence(start?: number, length?: number)
powers2Sequence(start?: number, length?: number)
squareSequence(start?: number, length?: number)
starSequence(start?: number, length?: number)
triangularSequence(start?: number, length?: number)