> For the complete documentation index, see [llms.txt](https://soufatn.gitbook.io/rxjs-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soufatn.gitbook.io/rxjs-book/summary/helpers/just.md).

# just

A function which takes an argument and returns a function, when invoked, returns the argument.

## Arguments

1. `value` *(Any)*: The value to return.

## Returns

*(Function)*: A function, when invoked, returns the value.

## Example

```javascript
var just = Rx.helpers.just;

Rx.Observable.timer(100)
  .map(just('foo'))
  .subscribe(console.log.bind(console));
// => foo
```
