Board Thread:Support Requests - Designing Your Wiki/@comment-366087-20131113045535/@comment-1158325-20131115013045

Love Robin wrote: Just noticed "(cats.indexOf(cat) !== -1)" …what does the -1 control? That line says to run that block as long as the key in the colors object that it is currently iterating on is contained in the list of categories the page is in. indexOf returns -1 if it isn't there.