JavaScript: Array.every