In JavaScript, the rest parameter is a feature that allows a function to accept an indefinite number of arguments as an array. Here are some examples: Did you find it interesting? Follow me on Twitter.
Continue ReadingTag: JavaScript
Avoid global methods in JavaScript
The code snippet provided showcases the difference between using the global isNaN method in JavaScript and the Number.isNaN method. Did you find it interesting? Follow me on Twitter.
Continue ReadingAbstract class and method in JavaScript
The following snippet shows how to write an abstract class and method. Goals The abstract class cannot be instantiated; The abstract method must be implemented. See example online at https://codesandbox.io/s/abstract-class-and-method-clvze Did you find it interesting? Follow
Continue ReadingValue of the first object property
Get the value of the first object property using Object.values() and array destructuring. See example online at https://codesandbox.io/s/value-of-the-first-object-property-b7dvj Did you find it interesting? Follow me on Twitter.
Continue ReadingReturning undefined (JavaScript)
Because sometimes things aren’t so obvious – All these functions return undefined. See example online at https://codesandbox.io/s/returning-undefined-x6wxh Did you find it interesting? Follow me on Twitter.
Continue ReadingESLint config Cecilia
Acabei de lançar o meu contributo para uma configuração partilhável do ESLint que pode ser utilizado em aplicações desenvolvidas em JavaScript (Vanilla.js, React.js ou Node.js). Foi criado um pacote npm e um repositório no GitHub denominado ESLint config
Continue ReadingProgramação funcional com a função reduce() do JavaScript
Dentro do paradigma da programação funcional no JavaScript, o método reduce() é uma das funções fundamentais. Esta permite trabalhar com arrays podendo ser utilizada, por exemplo, para somar todos os elementos de um array, calcular
Continue ReadingLista de livros
Ler livros técnicos é um dos meus hobbies favoritos. Esta é a lista de livros de programação que já li. Este post é atualizado regularmente. Criação Rápida de Sites Responsivos com o Bootstrap (pt-PT
Continue Reading