Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@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>

Function to extract the default values from