質問編集履歴
2
タグとタイトルを変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ネストされた可変キーのオブジェクトからプロパティを掘り進む時にundefinedになる
|
test
CHANGED
File without changes
|
1
errorをnotextへ変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
function fruits2(item,lang){
|
110
110
|
|
111
|
-
const name = obj['parent'][item] ? obj['parent'][item][lang] : 'e
|
111
|
+
const name = obj['parent'][item] ? obj['parent'][item][lang] : 'notext';
|
112
112
|
|
113
113
|
console.log('fruits2' + name);
|
114
114
|
|