MCPcopy
hub / github.com/nestjs/nest / isFunction

Function isFunction

packages/common/utils/shared.utils.ts:43–44  ·  view source on GitHub ↗
(val: any)

Source from the content-addressed store, hash-verified

41 path[path.length - 1] === '/' ? path.slice(0, path.length - 1) : path;
42
43export const isFunction = (val: any): val is Function =>
44 typeof val === 'function';
45export const isString = (val: any): val is string => typeof val === 'string';
46export const isNumber = (val: any): val is number => typeof val === 'number';
47export const isConstructor = (val: any): boolean => val === 'constructor';

Callers 15

createMethod · 0.90
bindMessageHandlersMethod · 0.90
mapPayloadMethod · 0.90
insertInjectableMethod · 0.90
scanFromPrototypeMethod · 0.90
getAllMethodNamesMethod · 0.90
createExceptionProxyMethod · 0.90
createAdapterProxyMethod · 0.90
applyOptionsMethod · 0.90
listenMethod · 0.90
isMiddlewareClassFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected