2019-03-01 文字列リテラルに、条件分岐の組み合わせ TypeScript const img = require(`images/background${isPC ? "-pc" : ""}.png`);