Skip to content

Instantly share code, notes, and snippets.

View jfujita57's full-sized avatar

jfujita57 jfujita57

  • Japan
View GitHub Profile
@DoctorDerek
DoctorDerek / Kent C. Dodd's .filter() Trick Will Change How You Use JavaScript.js
Created June 28, 2021 20:41
This one-liner uses the Boolean constructor to magically remove all falsy values from an array ✨ https://medium.com/p/87b5112f9f6d
console.log([undefined,"👋",null,"","🌎",0].filter(Boolean)) // ["👋","🌎"]
console.log(["👋",0,"🌎"].filter((item)=>Boolean(item))) // ["👋","🌎"]
@QuincyLarson
QuincyLarson / gist:4b42a9c27700a19d1af830df8e84a6db
Last active October 11, 2021 05:13
How to learn to code and get your first developer job

How to learn to code and get your first developer job

By Quincy Larson (@ossia)




\