code: function isTextual(type, value) {
    return t.logicalExpression(
      "||",
      t.binaryExpression("===", type, t.stringLiteral("number")),
      t.logicalExpression(
        "||",
        t.binaryExpression("===", type, t.stringLiteral("string")),
        t.logicalExpression(
          "&&",
          t.binaryExpression("===", type, t.stringLiteral("object")),
          t.binaryExpression("instanceof", value, t.identifier("String"))
        )
      )
    );
  }
docs: Isolated AST code to determine if a value is textual (strings and numbers).