🔥 5 TRUCOS DE JAVASCRIPT QUE DEBES CONOCER 😮

🧵⏬
1️⃣ ELIMINAR REPETIDOS

Si utilizamos los Sets de JavaScript, tenemos la posibilidad de eliminar los elementos repetidos de un arreglos 💡
2️⃣ VALIDAR PARÁMETROS

A través de una función definida, podemos validar el envío de los argumentos de entrada de otra función 💡
3️⃣ FUSIONAR OBJETOS

Utilizando el operador spread, podemos fusionar dos o más objetos definidos, en un único objeto 💡
4️⃣ ORDENAR ARREGLO

Si utilizamos el método sort de los arreglos con el callback indicado, ordenaremos los elementos de este 💡
5️⃣ ELIMINAR VALORES FALSOS

Si quieres eliminar los valores undefined, null, NaN, 0, "" y false, presentes en un arreglo, usa el método filter con el argumento Boolean 💡
No olvides dejar tu fabuloso ❤️ y también 🔄

Gracias por todo tu apoyo 🙌

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Alexanyer Naranjo ☕

Alexanyer Naranjo ☕ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @alexanyernas

15 Nov
🔥 NO NECESITAS CICLOS EN JAVASCRIPT (Array Methods) 😲

🧵⬇️
1️⃣ EVERY

Comprobará si todos los elementos de un arreglo cumplen una condición 💡 Image
2️⃣ FOREACH

Recorre todos los elementos de un arreglo y realiza una acción sobre cada uno 💡 Image
Read 8 tweets
10 Nov
🔥 REPOSITORIOS POPULARES DE GITHUB PARA DESARROLLO WEB 😲

🧵 ⬇️
✨ YOU DON´T KNOW JS YET

Encontrarás libros que profundizan en los mecanismos centrales de JavaScript 💡

github.com/getify/You-Don…
✨ AIRBNB JAVASCRIPT STYLE GUIDE

La guía de estilos de Airbnb es una de las más populares y de uso común que podrás encontrarte 💡

github.com/airbnb/javascr…
Read 9 tweets
8 Nov
🔥 GENERADORES DE CÓDIGO CSS QUE DEBES PROBAR 😮

🧵⏬
✨ LAYOUTIT!

Diseña rápidamente el layout de tu página web 💡

grid.layoutit.com
✨ CSS BUTTON GENERATOR

Crea botones sin necesidad de utilizar alguna línea de código 💡

👉 cssbuttongenerator.com
Read 10 tweets
1 Nov
🔥 5 MANERAS DE CENTRAR UN DIV CON CSS 😲

🧵 ⬇️
✨ HTML ✨ Image
1️⃣ POSITION: ABSOLUTE Image
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(