/*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */'use strict';varisObject=require('isobject');functionisObjectObject(o){returnisObject(o)===true&&Object.prototype.toString.call(o)==='[object Object]';}module.exports=functionisPlainObject(o){varctor,prot;if(isObjectObject(o)===false)returnfalse;// If has modified constructorctor=o.constructor;if(typeofctor!=='function')returnfalse;// If has modified prototypeprot=ctor.prototype;if(isObjectObject(prot)===false)returnfalse;// If constructor does not have an Object-specific methodif(prot.hasOwnProperty('isPrototypeOf')===false){returnfalse;}// Most likely a plain Objectreturntrue;};