@ng-doc/core / Function

extractFunctionDefaults

Extracts the default values of a function parameters. It returns an array of the default values because after minification the parameter names are lost.

Presentation

function extractFunctionDefaults(fn: FunctionType<unknown>): unknown[];

Returns

unknown[]

Parameters

NameTypeDescription
fn
FunctionType<unknown>

@param fn - Function to extract the default values from