Skip to content
@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.

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

Returns

unknown[]

Parameters

NameTypeDescription
fn
FunctionType<unknown>

Function to extract the default values from

Symbol
Kind
Function
Scope
@ng-doc/core
Edit this page