Merge pull request #538 from zwdsjl/patch-1

Update string.md
This commit is contained in:
Ruan YiFeng
2017-11-05 10:43:20 +08:00
committed by GitHub
+2 -1
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];
}