KITFORMA · EDITORIAL GUIDE
Why do all checklist rows change after Array.fill creates their initial objects?
KitForma editorial guide. Array(3).fill({done:false}) reuses one object.
Step-by-step guidance
Array(3).fill({done:false}) reuses one object. Use Array.from({length:3}, () => ({done:false})) to create independent records. Verify toggling row zero leaves row one unchanged and their references differ. Copying only the outer array later does not separate those shared objects.Sources and verification
Sources checked:
Scope: This editorial guide is based on the cited sources and tool behavior. A forum question or a query observed for our site does not establish market search volume, low competition, guaranteed rankings or inadequate answers elsewhere.
This starter guide was prepared by KitForma with AI assistance. It is not presented as a real member question or an independent user review. Check the sources and the result with your own file; report corrections in the discussion.