Whether a JSON value is an array.
A named guard rather than a bare Array.isArray: the standard library types that predicate as arg is any[], which does not narrow a readonly array out of a union, and JsonValue's array member is readonly.
Array.isArray
arg is any[]
readonly
Whether a JSON value is an array.
A named guard rather than a bare
Array.isArray: the standard library types that predicate asarg is any[], which does not narrow areadonlyarray out of a union, and JsonValue's array member isreadonly.