gochan-org / gochan

Detected the delete operator with computed key expressions JS-0320
Anti-pattern
Minor
2 months agoa year old
Do not delete dynamically computed property keys
 16	for(const board of boards) {
 17		if(!(watched[board] instanceof Array)) {
 18			console.error(`Invalid data for board ${board}: expected Array object, deleting.`);
 19			delete watched[board]; 20			continue;
 21		}
 22		$(document).trigger("beginNewPostsCheck");