window.ENTITIES={'/api/snippets/javascript/js%20foreach%20loop%20over%20array%20with%20break%20example':[{"result":true,"message":null,"batch":{"type":"javascript","name":"js foreach loop over array with break example","items":[{"id":"DgP3op","type":"javascript","name":"js foreach loop over array with break example","content":"let array = [1, 2, 3, 'text'];\n\nfor (let entry of array) {\n if(entry == 3) {\n break;\n }\n\n console.log(entry);\n}\n\n// Output:\n// 1\n// 2","source":"https://dirask.com/posts/JavaScript-loops-for-while-do-while-Z1Admj","author":{"id":"505Y10","name":"Wiktor-Sribiew","avatar":"1629126875612__505Y10__w40px_h40px.jpg","points":860,"role":"BASIC"},"creationTime":1634577035000,"updateTime":null,"removalTime":null}]}}]};