Are Array push and pop operation atomic?
I have a webworker that is listening for messages and updates an Array and I am wondering if the arr.length === 0 will always return a correct answer?
arr.length === 0