blob: 0d1ba9eeb89723bbce4781f2ccc66649d661ba4b [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2var toString = Object.prototype.toString;
3
4module.exports = function (x) {
5 var prototype;
6 return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));
7};