isFunctionExpression

[ Function ]

export function isFunctionExpression(value: Value): value is FunctionExpression;

Checks whether the transferred parameter is of type FunctionExpression.

Parameter

Name

Type

Description

value

Value

Variable to be tested.

Return value

Type

Description

boolean

Returns true if the transferred value matches the corresponding type.

Returns false if the transferred value does not match the corresponding type.

isFunctionExpression 1:

Available from version 1.12