You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
for
문 이용하지 않는다for..in
,for..of
도 마찬가지입니다.let
이용하지 않는다const
를 이용했을 때 더 좋은 로직이 됩니다.snack.name = "qwer";
) 대신const newSnack = { …snack, name: 'qwer' }
이렇게 해야 합니다.snacks[1] = newSnack
) 대신const newSnacks = snacks.toSpliced(1, 0, newSnack)
이런 식으로 해야 합니다.push
,pop
,splice
,sort
등등) 대신 수정된 배열을 반환하는 함수 (concat
,toSorted
등등) 이 좋습니다.const sId = snack.id
대신 풀네임으로const snackId = snack.id
이렇게 해주는게 좋습니다.Beta Was this translation helpful? Give feedback.
All reactions