mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
31 lines
837 B
JavaScript
31 lines
837 B
JavaScript
import _curry2 from './internal/_curry2.js';
|
|
|
|
/**
|
|
* Divides the first parameter by the second and returns the remainder. Note
|
|
* that this function preserves the JavaScript-style behavior for modulo. For
|
|
* mathematical modulo see [`mathMod`](#mathMod).
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.1
|
|
* @category Math
|
|
* @sig Number -> Number -> Number
|
|
* @param {Number} a The value to the divide.
|
|
* @param {Number} b The pseudo-modulus
|
|
* @return {Number} The result of `b % a`.
|
|
* @see R.mathMod
|
|
* @example
|
|
*
|
|
* R.modulo(17, 3); //=> 2
|
|
* // JS behavior:
|
|
* R.modulo(-17, 3); //=> -2
|
|
* R.modulo(17, -3); //=> 2
|
|
*
|
|
* const isOdd = R.modulo(R.__, 2);
|
|
* isOdd(42); //=> 0
|
|
* isOdd(21); //=> 1
|
|
*/
|
|
var modulo = /*#__PURE__*/_curry2(function modulo(a, b) {
|
|
return a % b;
|
|
});
|
|
export default modulo; |