When I read the source code of keyIndex function, I found that if I have a vNode with the key is 0, the vNode will be add to free array instead of keys, I am confused.

I think the if (child.key) is the source to due to this result.
Is a bug or a special design? if it's a special design, why to design it?
When I read the source code of
keyIndexfunction, I found that if I have a vNode with the key is 0, the vNode will be add tofreearray instead ofkeys, I am confused.I think the
if (child.key)is the source to due to this result.Is a bug or a special design? if it's a special design, why to design it?