How to use the modulo function from ramda
Find comprehensive JavaScript ramda.modulo code examples handpicked from public code repositorys.
3113 3114 3115 3116 3117 3118 3119 3120 3121 3122
* @example * * R.modulo(17, 3); //=> 2 * // JS behavior: * R.modulo(-17, 3); //=> -2 * R.modulo(17, -3); //=> 2 * * var isOdd = R.modulo(R.__, 2); * isOdd(42); //=> 0 * isOdd(21); //=> 1
0
0
0
+ 71 other calls in file
9348 9349 9350 9351 9352 9353 9354 9355 9356 9357
* @category Math * @sig Number -> Number -> Number * @param {Number} m The dividend. * @param {Number} p the modulus. * @return {Number} The result of `b mod a`. * @see R.modulo * @example * * R.mathMod(-17, 5); //=> 3 * R.mathMod(17, 5); //=> 2
0
0
2
+ 19 other calls in file
ramda.clone is the most popular function in ramda (30311 examples)