---
title: "Dom Habersack (@domhabersack) | Hashnode"
description: "Teaching everything I know. Read the latest articles by Dom Habersack on Hashnode."
url: "https://hashnode.com/@domhabersack"
---

@domhabersack

# Dom Habersack

@domhabersack · Joined December 2020

Teaching everything I know.

## Comments

[You mean testing if something is an array by checking if it has an includes function? Array.isArray() has been around for longer and has much wider browser support. includes also exists on strings, so by testing if a thing has that function it could be either an array or a string.](https://hashnode.com/posts/how-to-check-if-something-is-an-array-in-javascript/5fe0d1e77cd4e55d1d465e6b/comment/5fe1b761463ba965301c74c4#reply-5fe1b91ea669d865551f6677)

Reply · Article · Dec 22, 2020 · [🔥 How to check if something is an array in JavaScript](https://hashnode.com/posts/how-to-check-if-something-is-an-array-in-javascript/5fe0d1e77cd4e55d1d465e6b)

[With this approach, there is no active switch. If the operating system supports Dark Mode, the CSS respects that global setting. Like when I go into my iPhone’s settings and switch EVERYTHING to Dark Mode (Settings.app → Display & Brightness → Appearance). macOS has a similar setting. I don’t know where to find it on Android, Windows, or Linux. If we wanted an active toggle a visitor can use, we’d have to use JavaScript instead of (or possibly in addition to) this media query. You can see a demo of this by switching your phone from light to dark mode on twitter.com, they seem to use this method. I added it to my site just last week: islovely.co/posts](https://hashnode.com/posts/the-easiest-way-to-build-a-dark-mode/5fd9fc744d058528f6ceee04/comment/5fda54ea33db062ae10cddf6#reply-5fda629dd296552b06489949)

Reply · Article · Dec 16, 2020 · [The easiest way to build a Dark Mode](https://hashnode.com/posts/the-easiest-way-to-build-a-dark-mode/5fd9fc744d058528f6ceee04)
