Skip to content

yeion7/isdivisible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isDivisible

Curry function that return if a number is divisible

API

Basic

The function receive two arguments, the first is the dividend, the second is the divisor.

import isDivisible from 'isDivisible'

isDivisible(9, 3) //true
isDivisible(9, 2) //false

Curry

You can compose new functions

import isDivisible from 'isDivisible'
import { __ } from 'ramda'

const isDivisibleBy3 = isDivisible(__, 3)

isDivisibleBy3(9) //true
isDivisibleBy3(4) //false

About

return if a number is divisible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published