param { any } value returns { boolean } public export default function isPlainObject ( value ) { if ( typeof value !== 'object' || value === null ) return false ; let proto = Object . getPrototypeOf ( value ) ; if ( proto === null ) return true ; let baseProto = proto ; while ( Object . getPrototypeOf ( baseProto ) !== null ) { baseProto = Object . getPrototypeOf ( baseProto ) ; } return proto === baseProto ; }