What is Nostr?
Alex Gleason /
npub108p…yev6
2023-10-04 13:30:14
in reply to nevent1q…s4nn

Alex Gleason on Nostr: The "in" keyword checks the presence of keys, not values. The array has keys 0, 1, 2, ...

The "in" keyword checks the presence of keys, not values. The array has keys 0, 1, 2, 3. Basically "in" does not do the same thing as Python. l.includes(4) is true.
Author Public Key
npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6