code: function isPlainObject(val) {
    if (getTag(val) !== "object") {
      return false
    }
  
    const pp = getPrototype(val)
  
    if (pp === null || pp === void 0) {
      return true
    }
  
    const Ctor = pp.constructor && pp.constructor.toString()
  
    return Ctor === objectCtorString
  }
docs: Based ob lodash/isPlainObject