質問編集履歴

2

タグとタイトルを変更

2020/03/04 03:20

投稿

huwatoro
huwatoro

スコア19

test CHANGED
@@ -1 +1 @@
1
- jQueryオブジェクトを検索して変数がundefinedであっても、式全体での判定をしたい
1
+ ネストされた可変キーのオブジェクトからプロパティ掘り進む時にundefinedになる
test CHANGED
File without changes

1

errorをnotextへ変更

2020/03/04 03:20

投稿

huwatoro
huwatoro

スコア19

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] : 'error';
111
+ const name = obj['parent'][item] ? obj['parent'][item][lang] : 'notext';
112
112
 
113
113
  console.log('fruits2' + name);
114
114