{"id":5730,"date":"2025-04-30T09:33:53","date_gmt":"2025-04-30T14:33:53","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=5730"},"modified":"2025-04-30T09:33:54","modified_gmt":"2025-04-30T14:33:54","slug":"comparing-iterators","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/comparing-iterators\/","title":{"rendered":"Comparing Iterators"},"content":{"rendered":"\n<p>Matt Smith on <a href=\"https:\/\/allthingssmitty.com\/2025\/04\/21\/when-to-use-map-vs-foreach\/\">when to use <code>map()<\/code> vs. <code>forEach()<\/code><\/a> in JavaScript. Just one of those things I can imagine asking or being asked in a coding interview. Some interesting comments below the article as well. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matt Smith on when to use map() vs. forEach() in JavaScript. Just one of those things I can imagine asking or being asked in a coding interview. Some interesting comments below the article as well.<\/p>\n","protected":false},"author":1,"featured_media":5731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[320,3,22],"class_list":["post-5730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-foreach","tag-javascript","tag-job-hunting"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/04\/pexels-photo-17300299.jpeg?fit=1005%2C1300&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/5730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=5730"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/5730\/revisions"}],"predecessor-version":[{"id":5732,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/5730\/revisions\/5732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/5731"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=5730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=5730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=5730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}