配列の型宣言
...
something = 1 // any型は別の型で上書きできる。
let fruits: string[] = ["りんご", "みかん", "パイナップル"];...
let fruits: string[] = ["りんご", "みかん", "パイナップル"];
fruits.forEach((fruit) => fruit.length);
Last updated
...
something = 1 // any型は別の型で上書きできる。
let fruits: string[] = ["りんご", "みかん", "パイナップル"];...
let fruits: string[] = ["りんご", "みかん", "パイナップル"];
fruits.forEach((fruit) => fruit.length);
Last updated