just-modulo

modulo of a number and a divisor
modulo mod remainder number math no-dependencies just


Summary

Project Name just-modulo Project Url https://github.com/angus-c/just#readme
InceptionYear 2017-05-03 03:43:26 更新时间 2018-08-09 12:50:23
IssueManagement https://github.com/angus-c/just/issues Licenses MIT
仓库地址 git+https://github.com/angus-c/just.git 用户数 0
Node Engine 文件大小 1.4 KB
install test

项目介绍

## just-modulo Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion. ``` import modulo from 'just-modulo'; modulo(7, 5); // 2 modulo(17, 23); // 17 modulo(16.2, 3.8); // 17 modulo(5.8, 3.4); //2.4 modulo(4, 0); // 4 modulo(-7, 5); // 3 modulo(-2, 15); // 13 modulo(-5.8, 3.4); // 1 modulo(12, -1); // NaN modulo(-3, -8); // NaN modulo(12, 'apple'); // NaN modulo('bee', 9); // NaN modulo(null, undefined); // NaN ```