0.9.0 • Published 8 years ago

isdivisible v0.9.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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
0.9.0

8 years ago

0.8.0

8 years ago

0.5.0

8 years ago