# common.isSafeInteger

- **Module:** common
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/common.ts#L52
- **Page:** https://libtmux.org/reference/ts/common-issafeinteger/

```
common.isSafeInteger(value: : unknown) -> value is SafeInteger
```

Test whether a value is an exact JavaScript integer.

## Example

```ts
import { isSafeInteger } from "libtmux";
const value: unknown = 3;
if (isSafeInteger(value)) snapshot.sessions.where({ attached: value });
```
