> For the complete documentation index, see [llms.txt](https://katxupa.gitbook.io/katxupa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://katxupa.gitbook.io/katxupa/get-a-taste-of-katxupa/usage/scope-functions/functions/alsoit.md).

# alsoIt

***alsoIt(it => {** // do something here with it **})***

* **The context object** is available as an argument (*it*).
* **The return value** is the object itself.

*alsoIt* is useful for performing some actions that take the context object as an argument. Use *alsoIt* for actions that need a reference to the object rather than its properties and functions, or when you don't want to shadow the *this* reference from an outer scope.

When you see also in code, you can read it as "**and also do the following with the object**."

```ts
const numbers = mutableListOf<string>("one", "two", "three");

numbers
    .alsoIt(it => console.log(`The list elements before adding new one: ${it}`))
    .push("four");
```
