You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why are `boolean`, `number` and `string` exempt from starting with a capital letter? Let's take `string` as an example. In Javascript, everything is an object. The string Object has prototypes for string functions such as `.toUpperCase()`.
1126
+
Why are `boolean`, `number` and `string` exempt from starting with a capital letter? Let's take `string` as an example. In Javascript, everything is an object. The string Object has prototypes for string functions such as `.toUpperCase()`.
1125
1127
1126
-
Fortunately we don't have to write `new String()` everywhere in our code. Javascript will automatically wrap string primitives into string Objects when we're applying a string function to a string primitive. This way the memory footprint is a tiny little bit smaller, and the [GC](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)) has less work to do.
1128
+
Fortunately we don't have to write `new String()` everywhere in our code. Javascript will automatically wrap string primitives into string Objects when we're applying a string function to a string primitive. This way the memory footprint is a tiny little bit smaller, and the [GC](https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)) has less work to do.
1127
1129
1128
1130
So in a sense, there two types of strings in Javascript; `{string}` literals, also called primitives and `{String}` Objects. We use the primitives because it's easier to write and uses less memory. `{String}` and `{string}` are technically both valid, but they are not the same.
1129
1131
@@ -1428,6 +1430,21 @@ function quux(foo) {
1428
1430
functionquux(foo) {
1429
1431
1430
1432
}
1433
+
1434
+
/**
1435
+
* Callback test.
1436
+
*
1437
+
* @callbackaddStuffCallback
1438
+
* @param{String}sum - An test integer.
1439
+
*/
1440
+
/**
1441
+
* Test Eslint.
1442
+
*
1443
+
* @param{addStuffCallback}callback - A callback to run.
1444
+
*/
1445
+
functiontestFunction(callback) {
1446
+
callback();
1447
+
}
1431
1448
````
1432
1449
1433
1450
@@ -2696,6 +2713,18 @@ function quux (foo) {
2696
2713
2697
2714
Requires all types to be valid JSDoc or Closure compiler types without syntax errors.
2698
2715
2716
+
Also impacts behaviors on namepath-pointing or event-pointing tags:
- Expect tags in set 1 or 2 to have a valid namepath if present
2725
+
- Prevent set 2 from being empty by setting `allowEmptyNamepaths` to `false` as these tags might have some indicative value without a path (but set 1 will always fail if empty)
2726
+
- For the special case of set 3, i.e., `@borrows <that namepath> as <this namepath>`, check that both namepaths are present and valid and ensure there is an `as ` between them.
0 commit comments