isFilledString
Validates if the supplied input is a string that is not empty.
Signature
isFilledString(input: any): boolean
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
input | any | No | Input to validate. |
Return value
Returns true if the input is a string with content.
Example
import { isFilledString } from "tripetto-runner-foundation";
isFilledString("ABC"); // Returns `true`
isFilledString(""); // Returns `false`
isFilledString(1); // Returns `false`