JavaScript で三項演算子だけの行(return や代入なし)ってありでしたっけ?

response.error ? setBadge('!', 'red') : setBadge('', '');

Reply to this note

Please Login to reply.

Discussion

VSCode も esbuild も文句言わないから多分アリ