Skip to content

Commit 4815ab0

Browse files
committed
[strings] add jsPerf and discussion about long strings with concatenation. Fixes #40
1 parent e645ca2 commit 4815ab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
```
181181

182182
- Strings longer than 80 characters should be written across multiple lines using string concatenation.
183+
- Note: If overused, long strings with concatenation could impact performance. [jsPerf](http://jsperf.com/ya-string-concat) & [Discussion](https://github.com/airbnb/javascript/issues/40)
183184

184185
```javascript
185186
// bad
@@ -1289,6 +1290,7 @@
12891290
- [Bang Function](http://jsperf.com/bang-function)
12901291
- [jQuery Find vs Context, Selector](http://jsperf.com/jquery-find-vs-context-sel/13)
12911292
- [innerHTML vs textContent for script text](http://jsperf.com/innerhtml-vs-textcontent-for-script-text)
1293+
- [Long String Concatenation](http://jsperf.com/ya-string-concat)
12921294
- Loading...
12931295

12941296
**[[⬆]](#TOC)**

0 commit comments

Comments
 (0)