code: function isPlainObject(value) {
    return t.binaryExpression(
      "===",
      toFunctionCall(t.identifier("String"), [value]),
      t.stringLiteral("[object Object]")
    );
  }
docs: Isolated AST to determine if the value is a "plain" object.