# isFunction

**Kind:** Function

**Source:** [`packages/common/utils/shared.utils.ts`](https://github.com/nestjs/nest/blob/master/packages/common/utils/shared.utils.ts#L43)

**Part of:** [Common](subsystem-packages-common)

## Signature

```ts
function isFunction(val: any): val is Function
```

## Parameters

| Name | Type |
|---|---|
| `val` | `any` |

**Returns:** `val is Function`

## Used by

28 references from 28 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (28)

- `anonymousMiddleware` — `packages/core/middleware/utils.ts`:77
- `InvalidClassScopeException` — `packages/core/errors/exceptions/invalid-class-scope.exception.ts`:6
- `BaseExceptionFilterContext` — `packages/core/exceptions/base-exception-filter-context.ts`:11
- `GuardsContextCreator` — `packages/core/guards/guards-context-creator.ts`:12
- `ParamProperties` — `packages/core/helpers/context-utils.ts`:15
- `callBeforeAppShutdownHook` — `packages/core/hooks/before-app-shutdown.hook.ts`:49
- `callModuleBootstrapHook` — `packages/core/hooks/on-app-bootstrap.hook.ts`:43
- `callAppShutdownHook` — `packages/core/hooks/on-app-shutdown.hook.ts`:45

…and 20 more.
