---
title: "isFunction"
description: "A TypeScript type guard that checks whether a value is callable, narrowing it to a function type so you can safely invoke it in your code."
canonical_url: "https://core.mhaibaraai.cn/en/docs/validators/is-function"
---
# isFunction

> A TypeScript type guard that checks whether a value is callable, narrowing it to a function type so you can safely invoke it in your code.

## Usage

Check whether a value is a function. This is a TypeScript type guard function.

```ts
import { isFunction } from '@movk/core'

isFunction(() => {}) // => true
isFunction(Math.abs) // => true
isFunction({}) // => false
```

## API

`isFunction(value: any): value is (...args: any[]) => any`

### Parameters

**value** (`any`) *required*: The value to check.

### Returns

**boolean**: Returns true if the value is a function, otherwise false.

## Changelog

See commit history for [src/validators/isFunction.ts](https://github.com/mhaibaraai/movk-core/commits/main/src/validators/isFunction.ts).

---

- [GitHub](https://github.com/mhaibaraai/movk-core/blob/main/src/validators/isFunction.ts)


## Sitemap

See the full [sitemap](https://core.mhaibaraai.cn/sitemap.md) for all pages.
