Загрузка...

Javascript trick #9 to filter out the falsy values & print the truthy values #coding #programming

We use the filter method on the array 'arr' to only extract the truthy values. Since Boolean considers 0, null, undefined, " "(empty string) as falsy values, they are not shown in the final output.
If you liked this video then please subscribe.

Видео Javascript trick #9 to filter out the falsy values & print the truthy values #coding #programming канала Mr.G
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять