I\'m trying to add a key value pair to an existing javascript associative array. The key needs to be a variable. This is for JSON encoding. I realize there are many plugins
const tStyles = []; for (const i of iStyles) { const temp = {}; temp[`${style}`] = `../dist/css/uikit.${wFile}.${style}.css`; tStyles.push(temp); }
json : {"black-beige":"../dist/css/uikit.or.black-beige.css"}