Why does {. . . .0} evaluate to {}?
Four dots actually have no meaning. … is the spread operator, and .0 is short for 0.0. Spreading 0 (or any number) into an object yields an empty object, therefore {}.
Four dots actually have no meaning. … is the spread operator, and .0 is short for 0.0. Spreading 0 (or any number) into an object yields an empty object, therefore {}.