Skip to content

pera-urosevic/nice-numbers-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)