| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | var toString = Object.prototype.toString; | ||||
| 3 | |||||
| 4 | module.exports = function (x) { | ||||
| 5 | var prototype; | ||||
| 6 | return toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({})); | ||||
| 7 | }; | ||||