TypeScript型ガードArray.isArray
in operator

Array.isArray型ガード

Number.isFinite

値が配列かどうか確認します。

문법

Array.isArray(value): boolean