isJSONArray
Checks whether a value is an array whose every element is a valid JSON value (see isJSONValue).
Available since v3.0.3
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is unknown[] — true if value is an array of JSON values
Examples
Section titled “Examples”Validate a JSON array
Section titled “Validate a JSON array”Checks that a value is an array whose every element is JSON-representable.
