Andrew-Cottrell
Andrew-Cottrell
The following works with `@suppress {reportUnknownTypes}` only applied in a minimal scope function parseComment4() { try { throw new Error; } catch (ex) { return (/** @return {string} @suppress {reportUnknownTypes}...
`[].lastIndex === -1` is consistent with `findIndex`, `indexOf`, and `lastIndexOf` in ECMAScript and several other languages (e.g. Java and C#). These desirable identities suggest `[].lastIndex === -1` ``` array.lastIndex ===...
I don't follow why `for (let i = arr.lastIndex; i >= 0; i--)` will run forever if array is empty. `-1` is less than `0`, so the loop condition is...
> we should also notice that `-1` not work well with frequently used `slice()` method which treat `-1` as `length-1` not "not-a-index". The spec for `GetLastArrayIndex` currently has ``` Let...
> I think the data shows people want to use an inverse. Trying to find an opposed or inverse term for the verb 'to filter' feels like the wrong approach....
> I'm curious.. why they didn't like it? In my opinion, `filterOut` is too similar to `filterOutput`. `filterOut` is sometimes used as an abbreviation of `filterOutput`, much like `out` is...
https://github.com/jquery/jquery/blob/3.6.0/src/core.js#L223 It's not clear to me that the `toString.call( obj ) !== "[object Object]"` check is needed. The rest of the implementation appears to implement the documented behavior. This check...
Sorry, I have no prior experience with GitHub PRs and I am currently too busy with work to take the time to learn. I suggest a single sentence is appended...
Additional references - https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes#boolean_attributes - https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes The [example](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required#example) is valid, but _perhaps a bit verbose_. I suggest this variant, which maintains HTML & XML validity and is less verbose ```html...
The following examples place the `` elements after the `` element — as in your second sample — so I assume that is the recommended approach. - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role#example - https://w3c.github.io/aria-practices/examples/tabs/tabs-automatic.html#sc1_label...