1
票
Accepted
TypeScriptの配列の詰替えがしたいです
map関数を使うと次のように書けます。
type Sub = {
aaa: string;
bbb: string;
ccc: string;
}
type ExtendSub = Sub & {
isSelected: boolean;
}
const response: Sub[] = [
{ aaa: "a", bbb: ...
- 1,352
Only top scored, non community-wiki answers of a minimum length are eligible
関連するタグ
angular × 20typescript × 11
node.js × 3
angularjs × 2
google-chrome × 2
android × 1
monaca × 1
windows × 1
html5 × 1
laravel × 1
onsen-ui × 1
api × 1
windows-10 × 1
github × 1
非同期 × 1
https × 1
markdown × 1
iis × 1
cors × 1
github-pages × 1
angular-material × 1
import × 1