index.js 245 B

12345678910
  1. 'use strict';
  2. module.exports = value => {
  3. if (Object.prototype.toString.call(value) !== '[object Object]') {
  4. return false;
  5. }
  6. const prototype = Object.getPrototypeOf(value);
  7. return prototype === null || prototype === Object.prototype;
  8. };