OddPen

Welcome to my blog where I write about software engineering and how to lead a team!

This is a series where I (quickly) destructure one of those often shared snippet quizzes on Social Media. Welcome to the first episode!

Snippet

const myList = [['❤️'], ['JSSnippets'], ['❤️']];
const mySet = new Set(myList);
console.log(mySet.size);
Read more...

I just wanted to share a quick tip I learned on Twitter a while ago. It was about how you can wrap curly braces around a variable in your console.log statements to transform it into an object and have the variable name automatically prefixed.

Read more...

The problem with one-line arrow functions is that if you want to debug them with console.log, it's fairly annoying since you have to add curly braces and a return statement.

Read more...

This is a test :) Hello world