# BinaryOperatorAggregate

> **Class** in `@langchain/langgraph`

📖 [View in docs](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate)

Stores the result of applying a binary operator to the current value and each new value.

## Signature

```javascript
class BinaryOperatorAggregate
```

## Constructors

- [`constructor()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/constructor)

## Properties

- `initialValueFactory`
- `lc_graph_name`
- `operator`
- `UpdateType`
- `value`
- `ValueType`

## Methods

- [`checkpoint()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/checkpoint)
- [`consume()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/consume)
- [`equals()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/equals)
- [`finish()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/finish)
- [`fromCheckpoint()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/fromCheckpoint)
- [`get()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/get)
- [`isAvailable()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/isAvailable)
- [`update()`](https://reference.langchain.com/javascript/langchain-langgraph/index/BinaryOperatorAggregate/update)

---

[View source on GitHub](https://github.com/langchain-ai/langgraphjs/blob/dc37d3cd62bf88272cdc874e37354ae83ac01660/libs/langgraph-core/src/channels/binop.ts#L27)