{"id":4134,"date":"2015-05-07T12:15:19","date_gmt":"2015-05-07T09:15:19","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=4134"},"modified":"2018-10-26T16:27:04","modified_gmt":"2018-10-26T13:27:04","slug":"javascript-foreach-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/","title":{"rendered":"Javascript forEach Example"},"content":{"rendered":"<p>Very often we run in cases when we just have a collection of elements and a necessity to loop through it.<\/p>\n<p>EcmaScript5 suggests a simple <code>forEach()<\/code> method for such purpose.<\/p>\n<p>So, if you&#8217;re tired of writing countless <code>for (var i = 0; i &lt; arr.length; ++i)<\/code> loops, let&#8217;s look how it works.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;tCIwOngQUb3zSUuF&#8217;]<br \/>\n&nbsp;<br \/>\nFor example, we have an array of numbers and we want to output factorials of its elements<\/p>\n<pre class=\"brush:js\">\r\n\t\tfunction fact(n) {\r\n\t\t\tif (n == 1 || n == 0)\r\n\t\t\t\treturn 1;\r\n\t\t\treturn n * fact(n - 1);\r\n\t\t}\r\n\t\t[ 0, 1, 2, 3 ].forEach(function(elem) {\r\n\t\t\tdocument.writeln(fact(elem)); \/\/ outputs 1 1 2 6\r\n\t\t});\r\n<\/pre>\n<p>In case you need to perform some actions with array object here&#8217;s one more way with a little bit different syntax. Let&#8217;s say we want to check if an array contains a increasing by one sequense of numbers <\/p>\n<pre class=\"brush:js\">\r\n\t\tfunction outputElement(elem, ind, array) {\r\n\t\t\tif (ind == 0)\r\n\t\t\t\tdocument.writeln('arr[' + ind + '] = ' + elem + \"; Sequence started<br>\");\r\n\t\t\telse if (array[ind - 1] == elem - 1)\r\n\t\t  \t\tdocument.writeln('arr[' + ind + '] = ' + elem + \"; Larger by 1 than previous<br>\");\r\n\t\t  \telse\r\n\t\t  \t\tdocument.writeln('arr[' + ind + '] = ' + elem + \"; Sequence failed<br>\");\r\n\t\t}\r\n\t\t[ 0, 1, 2, 4, 5, 6 ].forEach(outputElement);\r\n<\/pre>\n<p>Also note that undefined elements of an array don&#8217;t count while iterating<\/p>\n<pre class=\"brush:js\">\r\n\t\tvar counter = 0;\r\n\t\t[ 0, , 1, , 2, , 3].forEach(function(element) {\r\n\t\t\t++counter;\r\n\t\t});\r\n\t\tdocument.writeln(counter); \/\/ outputs 4 not 7\r\n<\/pre>\n<p>This approach works fine with a collection of DOM elements. Let&#8217;s suppose we have following structure<\/p>\n<pre class=\"brush:html\">\r\n\t<ul>\r\n\t\t<li>0<\/li>\r\n\t\t<li>1<\/li>\r\n\t\t<li>2<\/li>\t\t\r\n\t\t<li>3<\/li>\r\n\t\t<li>4<\/li>\r\n\t<\/ul>\r\n<\/pre>\n<p>So, we can select <code>li<\/code> elements and iterate over them using following JS code<\/p>\n<pre class=\"brush:js\">\r\n\t\tfunction fact(n) {\r\n\t\t\tif (n == 1 || n == 0)\r\n\t\t\t\treturn 1;\r\n\t\t\treturn n * fact(n - 1);\r\n\t\t}\r\n\t\tvar obj = document.getElementsByTagName(\"li\");\r\n\t\tArray.prototype.forEach.call(obj, function(elem) {\r\n\t\t\tdocument.writeln(fact(elem.innerText));\r\n\t\t});\r\n<\/pre>\n<p>Using forEach one can also iterate over object properties<\/p>\n<pre class=\"brush:js\">\r\n\t\tvar o = {\r\n\t\t\tfirst: '0',\r\n\t\t\tsecond: '1',\r\n\t\t\tthird: '2',\r\n\t\t\tfourth: '3'\r\n\t\t};\r\n\t\tObject.getOwnPropertyNames(o).forEach(function(element) {\r\n\t\t\tdocument.writeln(element + \" = \" + o[element]);\r\n\t\t});\t\t\r\n<\/pre>\n<p>Sometimes you might want to break <code>forEach<\/code> loop. In this case good practice way is to use <code>every()<\/code> wich breaks looping when returns false<\/p>\n<pre class=\"brush:js\">\r\n\t\t[ 0, 1, 2, 3, 4 ].every(function(element, index, array) {\r\n\t\t\tdocument.writeln(element);\r\n\t\t\treturn element &lt; 3;\r\n\t\t});\r\n<\/pre>\n<p>Or, probably, you want to do something with the elements of an array until you find a special element and you will use <code>some()<\/code><\/p>\n<pre class=\"brush:js\">\r\n\t\t[ 0, 1, 2, 3, 4 ].some(function(element, index, array) {\r\n\t\t\tdocument.writeln(element);\r\n\t\t\treturn element == 3;\r\n\t\t});\r\n<\/pre>\n<p>Note, that <code>every()<\/code> breaks the loop when returning false, otherwise <code>some()<\/code> does it when returning true<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/Javascript_forEach_example.zip\"><strong>JavascriptForEach<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method for such purpose. So, if you&#8217;re tired of writing countless for (var i = 0; i &lt; arr.length; ++i) loops, let&#8217;s look how it works. &nbsp; &nbsp; &nbsp; &hellip;<\/p>\n","protected":false},"author":74,"featured_media":920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Javascript forEach Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript forEach Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/dimbasick\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-07T09:15:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-26T13:27:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dmitry Mishchenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dimbasick\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dmitry Mishchenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\"},\"author\":{\"name\":\"Dmitry Mishchenko\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57\"},\"headline\":\"Javascript forEach Example\",\"datePublished\":\"2015-05-07T09:15:19+00:00\",\"dateModified\":\"2018-10-26T13:27:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\"},\"wordCount\":239,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\",\"name\":\"Javascript forEach Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"datePublished\":\"2015-05-07T09:15:19+00:00\",\"dateModified\":\"2018-10-26T13:27:04+00:00\",\"description\":\"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Javascript forEach Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57\",\"name\":\"Dmitry Mishchenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g\",\"caption\":\"Dmitry Mishchenko\"},\"description\":\"This year I graduate from Applied Mathematics department of Brest State University. I'm fond of genetic algorithms and my degree work will be about generating timetables. Also I'm keen on programming and web-development, especially Java and Javascript. Now I work as a Java Developer at Java department of VRP Consulting.\",\"sameAs\":[\"https:\/\/www.facebook.com\/dimbasick\",\"https:\/\/www.linkedin.com\/profile\/view?id=296022174\",\"https:\/\/x.com\/dimbasick\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/dmitry-mishchenko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript forEach Example - Web Code Geeks - 2026","description":"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/","og_locale":"en_US","og_type":"article","og_title":"Javascript forEach Example - Web Code Geeks - 2026","og_description":"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/dimbasick","article_published_time":"2015-05-07T09:15:19+00:00","article_modified_time":"2018-10-26T13:27:04+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","type":"image\/jpeg"}],"author":"Dmitry Mishchenko","twitter_card":"summary_large_image","twitter_creator":"@dimbasick","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Dmitry Mishchenko","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/"},"author":{"name":"Dmitry Mishchenko","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57"},"headline":"Javascript forEach Example","datePublished":"2015-05-07T09:15:19+00:00","dateModified":"2018-10-26T13:27:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/"},"wordCount":239,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/","name":"Javascript forEach Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","datePublished":"2015-05-07T09:15:19+00:00","dateModified":"2018-10-26T13:27:04+00:00","description":"Very often we run in cases when we just have a collection of elements and a necessity to loop through it. EcmaScript5 suggests a simple forEach() method","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-foreach-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"Javascript forEach Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57","name":"Dmitry Mishchenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g","caption":"Dmitry Mishchenko"},"description":"This year I graduate from Applied Mathematics department of Brest State University. I'm fond of genetic algorithms and my degree work will be about generating timetables. Also I'm keen on programming and web-development, especially Java and Javascript. Now I work as a Java Developer at Java department of VRP Consulting.","sameAs":["https:\/\/www.facebook.com\/dimbasick","https:\/\/www.linkedin.com\/profile\/view?id=296022174","https:\/\/x.com\/dimbasick"],"url":"https:\/\/www.webcodegeeks.com\/author\/dmitry-mishchenko\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=4134"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4134\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/920"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=4134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=4134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=4134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}