What is `...` (the rest/spread syntax) in JavaScript?

preview_player
Показать описание
I use this ALL the time. I definitely recommend you become familiar with this functionality :)
Рекомендации по теме
Комментарии
Автор

Good video. Nitpick, but .concat takes multiple parameters, so you can concat multiple arrays with a single concat call. Also, Cmd+K clears the terminal.

boblauer
Автор

Pro tip: instead of typing `clear()`, just hit Win + K (windows) or Cmd + K (mac os) to clear the console. Works in basically all terminal applications too :D Really nice if you have something already in the command line as well and decide you want some more space to see but don't want to delete what's already there.

JasonSeegmiller
Автор

Parentheses aren't needed when playing with objects in the console. Chrome dev tools are now powered by Paul Irish's brain which makes them pretty darn smart ;)

marcziel
join shbcf.ru