IT

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文

Text("xxx") .background( color.cl ...

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文

TextEditor(text: $text).keyboardT ...

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文
TextEditor(text: $editText)

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文
Text(“xxx”)
.und ...

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文
Text(“xxx”)
.bac ...

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文
top: topPadding
padding修飾子の引 ...

Swift

環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS

構文
xxxView().padding(.top, value) ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
配列名.splice(範囲の最初の位置, 削除個数);
splice()の第1引数に範囲の最初の位置( ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
const result: string = 文字列.substr(1)
substr()の引数に「1 ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
.indexOf(value) > -1
indexOf()の結果が「−1」より大きければ、Ma ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
Object.values(オブジェクト変数名).indexOf(value) > -1
val ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
const result: T
スプレッド構文は、配列から重複する同じ値を削除した配列(Array)を ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
for (let char of 文字列) {
//ループ処理コード
//ループ変数「char ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
.includes(value)
values()を使って、Mapの値を配列に変換します。
対 ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
Object.values(対象のオブジェクト変数名).includes(値)
Objectからval ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
Object.values(対象のオブジェクト).forEach(function(value) {

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
配列の変数名.splice(index, 0, 挿入する要素);
splice()の第1引数にインデッ ...

TypeScript

環境
Windows 11 Pro 64bit
TypeScript 4.4.4

構文
const count = マップ変数名.size;
Map(マップ)の長さを取得するには、sizeプ ...