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, or an issue with types. I got some strange behavior trying to Array.from(object.nsfw) so perhaps it needs casting.
Resuming tomorrow.
changed the description
marked as a Work In Progress
changed the description
changed the description 3 times within 2 minutes
closed
Please register or sign in to reply