Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-ts latest

isSafeInteger

Test whether a value is an exact JavaScript integer.

Source and package
Qualified name
isSafeInteger
Module
common
Package
libtmux
Source
packages/libtmux/src/common.ts
function isSafeInteger( value: unknown, ): value is SafeInteger

Examples#

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

Type to search.

Reference previewOpen reference