#arrayholes — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #arrayholes, aggregated by home.social.
-
Array Holes Are NOT undefined?!
MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!
#javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript
-
Array Holes Are NOT undefined?!
MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!
#javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript
-
Array Holes Are NOT undefined?!
MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!
#javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript
-
Array Holes Are NOT undefined?!
MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!
#javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript
-
Array Holes Are NOT undefined?!
MIND BLOWN! An empty slot in an array is NOT the same as undefined. The hole doesn't exist as a property! map() SKIPS holes but processes undefined. This invisible difference will break your code!
#javascript #javascripttricks #arrayholes #sparsearrays #undefined #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #arraymethods #advancedjavascript
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
delete On Array Doesn't Remove It?!
Using delete on arrays creates holes instead of removing elements! Array length stays the same. This breaks everything! Watch!
#javascript #javascripttricks #codingtips #programmingtutorial #deleteoperator #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #arrayholes #javascriptwtf #arraydeletion
-
Array.map() IGNORES Empty Slots?!
🤯 STOP! This will DESTROY your understanding of arrays! Empty slots vs undefined - they're NOT the same! .map() completely skips holes but processes undefined. This bug crashed a production app with 1M users!
#javascript #javascripttricks #codingchallenge #javascriptarray #arrayholes #javascriptquiz #javascriptweird #javascriptwtf #arraymap #javascriptbugs #codinginterview #javascriptshorts