WIP: [Sprint/FunnyFrog](bug): Fixed bugs with reminds not respecting NSFW state of a post
Closing minds#428
Take the below code.
let object = { nsfw : [1, 2, 3, 4] };
let res = [ 1, 2, 4 ].filter(nsfw => { return object.nsfw.indexOf(nsfw) > -1}).length;
console.log(res);
It should output the integer 3.
Unfortunately for some reason, when considering reminds it does not, it outputs 0.
Given the input parameters seem the same, I'm thinking that it is some strange quirk of Javascript.
changed the description
marked as a Work In Progress
changed the description
changed the description 2 times within 1 minute
Please register or sign in to reply