mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
221aceb1c2
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
14 lines
770 B
Diff
14 lines
770 B
Diff
diff --git a/lib/index.js b/lib/index.js
|
|
index 110ac3858a002a6cdb698da2b56350bc1bf609d2..41330c4c310a44fd964b1f68de6b99046d2efae7 100644
|
|
--- a/lib/index.js
|
|
+++ b/lib/index.js
|
|
@@ -124,7 +124,7 @@ const u = null, {min: d, max: a, abs: h, floor: g} = Math, p = (e, t, o) => d(o,
|
|
if (!e.length) break;
|
|
N(e.reduce((e, [t, o]) => {
|
|
let n;
|
|
- if (2 === w) n = !0; else if (I && 1 === w) n = t < I[0]; else {
|
|
+ if (2 === w) n = J(t) < E(); else if (I && 1 === w) n = t < I[0]; else {
|
|
const e = E(), o = J(t), r = A(t);
|
|
n = 1 !== _ && 0 === w ? o + r <= e : o < e && o + r < e + l;
|
|
}
|