The DailyToken

Does delete leave a hole in an array in JavaScript?

Deleting an array element looks like it should shrink the array. It does not. Here is what a real run in Node.js 22 printed. The test const a = [ 1 , 2 , 3 ] ; delete a [ 1 ] ; console . log ( a ) ; // [ 1, , 3 ] console . log ( a . length ) ; // 3 console . log ( JSON . stringify ( a ) ) ; // [1,n…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-12-05 21:40 · DEV Community — AI
    Does delete leave a hole in an array in JavaScript?

More stories

  1. Mistral launches Crashtral, a physics foundation model for vehicle crash simulation — Mistral AI News
  2. OpenAI and Anthropic confirm AI models found weaknesses in internet encryption — Anthropic (X)
  3. Alibaba releases Qwen4-35B-A3B open-weight MoE model with 1M token context — Vercel Blog
  4. MI6 chief calls for AI crisis hotlines with China and pre-release model testing — Techmeme
  5. OpenAI says AI-generated papers disprove smooth 4D Poincaré conjecture — New Scientist Technology
  6. STATERA Library Publishes Chapters 5-12 of Legged Robot Mechanics and Dynamics Series — DEV Community — AI
  7. OpenAI tells staff revenue is now its North Star as annualized revenue reportedly hovers at $50B — Wall Street Journal Technology
  8. YouTube to exclude fully AI-generated songs from music subscription royalties — Financial Times AI

Read the Daily Brief: the day's most important AI stories →