Message from JavaScript discussions

August 2017

— This should return false, however... it only goes to index 2, as it's supposed to, and thus even though our search index only has one element, the iterations never reach 3, only 1, making the preemtion fail, and thus it never returns

Message permanent page


The problem can be averted by using this regular object as a search index instead of an array:

var search = {2:"it doesn't matter what the value is if it's a primitive lol"};

— Thoughts?

— Well, there must be a way to detect empty array slots

— Is js better than php?

— Anyone with this book

— Cross-platform desktop applications: with node, electron, and nw.js pdf

— Floofies did you get through it?

— Half

— Will watch the rest later

— Nice

— Not easily for my uses...