-
### Describe the bug
When we used an `$state([])`, some basic function of Array have an incorrect behavior with object.
It seems that all equality operations fail, as the object in the array is a pr…
-
`[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
) :…
-
https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L2902-L2917
```javascript
if (str.indexOf("javascript:") === 0) {
str = str.substr(11);
evaluateValue = true;
} else if (s…
-
### Description
Array.IndexOf on string array slower in 2.5 times that naive iterraction and compare.
### Configuration
```
BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.4291/22H2/2022Upd…
-
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; // …
-
I have run into an issue, not 100% sure that I have identified the root cause correctly yet though, so this may be a red-herring.
However, this change did help me move forward.
The `getActionB…
-
```ts
// your answers
type IndexOf =
T extends [infer F,...infer R]
? F extends U
? P[`length`]
: IndexOf
: -1
```
-
Need to check request details to make sure token hijacking isn't occurring (yes, this CAN be spoofed but this provides an additional layer that they have to spoof as well when doing a MITM; this allow…
-
```ts
type IndexOf = T extends [infer L, ...infer R]
? [U extends L ? 1 : 0, L extends U ? 1 : 0] extends [1, 1]
? S['length']
: IndexOf
: -1
```
[Online Demo](https://www.typescr…