1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2017-11-08 09:43:02 +08:00
commit 91f2a50e25

View File

@ -885,7 +885,8 @@ String.raw`Hi\\n`
```javascript
String.raw = function (strings, ...values) {
let output = "";
for (let index = 0; index < values.length; index++) {
let index;
for (index = 0; index < values.length; index++) {
output += strings.raw[index] + values[index];
}