function
Source: index.ts ↗
factoryNotationFor()
Returns a code for generating the provided input using convenience factory methods where possible.
factoryNotationFor: (data: any, additionalConversion?: (data: any) => string | undefined) => string
Parameters
Parameter | Type | Description |
|---|---|---|
data | any | data to return the generating code for |
additionalConversion | (data: any) => string | undefined | (Optional) specify other conversion that will be tried before falling back to standard stringify. return undefined when you want to fall back to standard stringify. |
Returns
string