配列の型指定

 const example1: string[] = ['Hello World'];
 
 const example2: (number | boolean)[] = [1, 2, true];
 
 const example3: boolean[][] = [ [true, false] ] ;

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2019-10-09 (水) 14:27:21