How to check if variable is an object in JavaScript

Objects
By Jad Joubran · 
Last updated Dec 17, 2017
const value = {
  name: "John"
};

Object.prototype.toString.call(value) === "[object Object]";
true