clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Optional chaining operator in JavaScript

A short an sweet guide into optional chaining operator ?. in JavaScript. Which problem optional chaining addresses? It’s good to know that…

JavaScript logical operators and the new nullish coalescing operator

The nullish coalescing operator is the newest addition to the JavaScript logical operator family. It was published in 2020. There are three…

JavaScript array method cheat sheet

A searchable quick reference of all JavaScript array methods, with simple examples. About array methods JavaScript has about 36 array…

Sort an array with another array

Here’s how to use the order or a config array to sort another array, using the JavaScript language. Why use a sorting array? A good way of…

Match a string between two ”markers“ using regex

Here’s a short guide into lookahead and lookbehind assertions, and how to find matches between two points. Match between “markers” I…

Hyphenating with CSS

This post looks into hyphenation with pure CSS. Hyphenation is more of a thing in print than web, but sometimes it comes handy if dealing…

Import JavaScript as a string with WebPack v5 (and Gatsby)

How to import some JavaScript files as plain text without WebPack processing at all. Why import as a string? It could be handy in a coding…

Reduce: the multitool of JavaScript array manipulation

A beginner-friendly guide into the JavaScript’s reduce method. Spiced up with analogies and examples. Why reduce might be needed? JavaScript…

Dealing with URL parameters in JavaScript

How to extract parameters from a URL and how to make new URLs, the official way, without combining strings or using 3rd party dependencies…

React children and syntactic purity

There might be more to React’s children prop than first meets the eye. Children is one of the rare "magical" things in React, it’s a prop…

← PreviousNext →
  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!