core / const
valueIsNonSignalStringArray
Checks whether a value is a non-signal of type string array.
Checks whether a value is a non-signal of type string array.
Signature
export const valueIsNonSignalStringArray = (input: any): boolean =>
input?.type === "non-signal" &&
Array.isArray(input?.value) &&
(input?.value as any[]).every((item) => typeof item === "string");
Parameters
input: Any value to check
Returns
true if the value is a non-signal with a string array
value, false otherwise
Remarks
- Checks that all array elements are strings
- Returns false for empty arrays
- Returns false for arrays with non-string elements
See Also
- NonSignal - For non-signal type
- valueIsNonSignalObject - For the general non-signal checker