Just write the code to describe what you really wanted to do, and if that performs badly, open a bug with V8 or other JavaScript engines to optimize it.
If there are two identical ways to write the same code, the engine is what should be deciding what's fastest and running that.
In this case, it probably ought to be pulling the "x" field out of this structure and doing a memset() on the whole thing.