Directus / @directus/sdk / rest / throwIfEmpty
Function: throwIfEmpty() ​
throwIfEmpty(
value,message):void
Defined in: rest/utils/throw-if-empty.ts:7
Parameters ​
value ​
string | unknown[]
message ​
string
Returns ​
void
Throws ​
Throws an error if an empty array or string is provided