π Reference
곡μ λ¬Έμ 1
Nullish coalescing assignment
Nullish coalescing assignment
??=
λ¬Όμν 2κ°, λ 1κ°
expr1 ??= expr2
x ??= y // μμ λμΌν μ x ?? (x = y);
xκ° nullish (null or undefined)μΌ λ, xμ yλ₯Ό ν λΉνλ€.
μμ
μμ 1