-
We have an existing analyzer/fixer [CA2249](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2249) that flags patterns like `string.IndexOf('a') >= 0` and suggests replaci…
-
IndexOf could use a few additional utf-8 tests to ensure we are correctly getting the right index when either or both the string and needle have utf-8 characters.
There are probably other utf-8 tes…
-
**Is your feature request related to a problem? Please describe.**
When working with tables, you often want to remove a specific element from the table. Assuming your code does not work out what the …
-
Problem is that, for the most part, the way we use and build components is incompatible with Svelte SSR. More specifically one part - reactive statements (ie `$: `).
For an ideal SSR experience, we…
-
GWT version: 2.8.2
Browser (with version): Chrome Version 61.0.3163.100
Operating System: Windows 7
Emulated class [ArrayList ](https://github.com/gwtproject/gwt/blob/master/user/super/com/googl…
-
Chrome extension fails to respond
![image](https://github.com/Dj0ulo/OptiSearch/assets/144540419/bee41088-7495-4216-8587-c27d9be4e80c)
-
`[NaN].indexOf(NaN)`의 결과는?
-
```ts
type IndexOf =
T extends [infer First, ...infer Rest] ? (
(() => V extends First ? 1 : 0) extends
(() => V extends U ? 1 : 0) ? (
Count['length']
) : IndexOf
) :…
-
```ts
// your answers
type IndexOf =
T extends [infer F,...infer R]
? F extends U
? P[`length`]
: IndexOf
: -1
```
-
IndexOf by Pineapple @Pineapple0919
Implement the type version of Array.indexOf, indexOf takes an Array T, any U and returns the index of the first U in Array T.
```ts
type Res = IndexOf; // …