isdivisible

0.9.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.0
    13
  • 0.8.0
    0
  • 0.5.0
    0

Package Sidebar

Install

npm i isdivisible

Weekly Downloads

13

Version

0.9.0

License

MIT

Last publish

Collaborators

  • yeion7