blob: 95079ec65258a6fb959f4bedfe6c5a4f41f27a4a [file] [log] [blame] [edit]
'use strict';
module.exports = value => {
if (Object.prototype.toString.call(value) !== '[object Object]') {
return false;
}
const prototype = Object.getPrototypeOf(value);
return prototype === null || prototype === Object.prototype;
};