Checks if a given value is a valid JSON array.
A valid JSON array is defined as an array where all items are valid JSON values.
The value to check.
console.log(isJSONArray([1, 2, 3])); // trueconsole.log(isJSONArray(["string", null, true])); // trueconsole.log(isJSONArray([1, 2, () => {}])); // falseconsole.log(isJSONArray("not an array")); // false Copy
console.log(isJSONArray([1, 2, 3])); // trueconsole.log(isJSONArray(["string", null, true])); // trueconsole.log(isJSONArray([1, 2, () => {}])); // falseconsole.log(isJSONArray("not an array")); // false
Alias