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
!! Все решения рабочие. Вариант с reverse() лучше исключить из-за мутаций. Вариант с Array.from является наиболее "зрелым" и оптимизированным технически, так как исключает лишнюю итерацию и создание временного массива.
0 commit comments