How to check if variable is an object in JavaScript

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

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