stringNullAttribute
This function checks the type of the input value and returns a string or null based on the input. If the input value is a not empty string, it returns the value as is. Otherwise, it returns null.
Presentation
function stringNullAttribute (value: unknown): string | null;
Returns
string | null
-{string | null} - The output value based on the input.
Parameters
Name | Type | Description |
---|---|---|
value | unknown | @param {unknown} value - The input value to be checked. |