2152 },
2153 onLoad: function (t, e, n, i, o) {
2154 var r = ot(o, e, t, n.positionFixed),
2155 a = it(2156 n.placement,2157 r,2158 e,2159 t,2160 n.modifiers.flip.boundariesElement,2161 n.modifiers.flip.padding,2162 );2163 return (
2164 e.setAttribute("x-placement", a),
2165 bt(e, { position: n.positionFixed ? "fixed" : "absolute" }),
2151 );
2152 },
2153 onLoad: function (t, e, n, i, o) {
2154 var r = ot(o, e, t, n.positionFixed),2155 a = it(
2156 n.placement,
2157 r,
1941 a = Ct(i);
1942 break;
1943 case Nt:
1944 a = Ct(i, !0);1945 break;
1946 default:
1947 a = e.behavior;
1922 fn: function (t, e) {
1923 if (dt(t.instance.modifiers, "inner")) return t;
1924 if (t.flipped && t.placement === t.originalPlacement) return t;
1925 var n = et(1926 t.instance.popper,1927 t.instance.reference,1928 e.padding,1929 e.boundariesElement,1930 t.positionFixed,1931 ),1932 i = t.placement.split("-")[0],
1933 o = at(i),
1934 r = t.placement.split("-")[1] || "",
1803 a = o.left,
1804 s = o[i];
1805 (o.top = ""), (o.left = ""), (o[i] = "");
1806 var l = et(1807 t.instance.popper,1808 t.instance.reference,1809 e.padding,1810 n,1811 t.positionFixed,1812 );1813 (o.top = r), (o.left = a), (o[i] = s), (e.boundaries = l);
1814 var u = e.priority,
1815 f = t.offsets.popper,
JavaScript allows passing more arguments to a function than needed. However, doing so makes your code less readable, and may not produce the result you would expect from the function call.
function mult(a, b, c) {
return a * b * c;
}
mult(1, 2, 3, 4); // '4' will be ignored, and the result will be '6'.
mult(...nums); // this is OK.
function mult(a, b, c) {
return a * b * c;
}
mult(1, 2, 3);
mult(...nums); // this is OK.