Birdwatch Note Rating
2023-10-01 00:20:48 UTC - HELPFUL
Rated by Participant: 8BD4DD0629CE9D6F06EBA3B0243E95BDD2BA943511F48C756E198D282F2689D0
Participant Details
Original Note:
In JavaScript, the 'x in y' operator is used to check if an object contains a key. '4 in [0,1,2,3,4]' is false because, like most languages, in JS arrays start from 0. Checking that an array contains a value can be done with 'y.includes(x)'. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in
All Note Details