by defined · 9y ago · 0 comments
// Overly clever way of saying: increment `currentChunk` then use the incremented value
this.chunks[++currentChunk] = []
Pre- and post-increment operators are bread and butter in C, hardly overly clever. Are they a recent addition to JS? currentChunk++;
this.chunks[currentChunk] = [];
Which is perhaps what you meant all along. Please excuse the pedantry.