Published in


Making JavaScript “typeof” work

How to get the true data type of an element

Making JavaScript “typeof” work: how to get the true data type

Say hello to #StraightToThePoint series

NERDJACKING #StraightToThePoint series: short stories with no chit-chat, just pure hands on code.

On every story you will find smart code snippets that can elevate your coding experience and save you time to focus on what’s important.






typeOf({}); // "object"

Real world scenario / Usage case

Playground demo

Got something on your mind? Let us know in the comments 💪




JavaScript and shit done right. Once.

Recommended from Medium

Reusable angular grid component using syncfusions ejs-angular-grid

Recharts: How To show/hide axis

AngularJS vs Angular2+

Working with JsonPath and Java

Build Your Own Observable, Part 2. Containers, and more Intuition.

How to create a Vue.js app using Single-File Components, without the CLI.

Guide to Building A Lightning-powered Media Store

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marcos Gonçalves

Marcos Gonçalves

Lead Engineer | Architect | Developer Advocate | 12+ years of experience. Also a lover of a good beer in his spare time.

More from Medium

Lesser-known JavaScript features — Part 2

Special Concepts about JavaScript & MongoDB

Redux Part 1: Intro

A developer’s oath: keep my promises … with React