| 858 | }; |
| 859 | |
| 860 | const formatValue = value => { |
| 861 | if (typeof value === 'number') { |
| 862 | return `\`${value}\``; |
| 863 | } |
| 864 | const str = String(value); |
| 865 | if (BARE_VALUE_TOKENS.has(str) || str.includes('${')) { |
| 866 | return `\`${str}\``; |
| 867 | } |
| 868 | return `\`'${str}'\``; |
| 869 | }; |
| 870 | |
| 871 | values.forEach(value => { |
| 872 | if (value === undefined || value === null) { |