We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6220506 commit 8f0ef5dCopy full SHA for 8f0ef5d
README.md
@@ -264,32 +264,6 @@
264
}
265
```
266
267
- - Always return as early as possible
268
-
269
- ```javascript
270
- // bad
271
- function() {
272
- var size;
273
274
- if (!arguments.length) {
275
- size = false;
276
- } else {
277
- size = arguments.length;
278
- }
279
280
- return size;
281
282
283
- // good
284
285
286
- return false;
287
288
289
- return arguments.length;
290
291
- ```
292
293
- Never name a parameter `arguments`, this will take precendence over the `arguments` object that is given to every function scope.
294
295
```javascript
0 commit comments