{"id":60621,"date":"2024-03-27T09:52:23","date_gmt":"2024-03-27T04:22:23","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=60621"},"modified":"2024-03-28T09:55:15","modified_gmt":"2024-03-28T04:25:15","slug":"creating-polyfills-for-map-filter-and-reduce-array-methods","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/","title":{"rendered":"Creating Polyfills for map, filter, and reduce Array Methods"},"content":{"rendered":"<div>\n<p>In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let&#8217;s roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language.<\/p>\n<\/div>\n<h2 id=\"dcd8\" class=\"ov ow gt be ox oy oz dx pa pb pc dz pd oe pe pf pg oi ph pi pj om pk pl pm pn bj\">Pollyfill for Array.map()<\/h2>\n<div>\n<div>\n<div>\n<div>\n<div><strong>Array.map()<\/strong> syntax:<\/div>\n<pre>array.map((currentValue, index, array) =&gt; { \/\/ function body });<\/pre>\n<\/div>\n<\/div>\n<div>\n<div>\n<p>As we can see, Array.map takes a callback as an argument, and that callback can have 3 arguments &#8211; currentValue, index(optional) and array(optional).<\/p>\n<p>Now Let&#8217; write our polyfill :<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code>Array.prototype.myMap = function(callbackFun) {\r\n    let newArray = [];\r\n    for (let i = 0; i &lt; this.length; i++) {\r\n        newArray.push(callbackFun(this[i], i, this));\r\n    }\r\n    return newArray;\r\n};<\/code><\/pre>\n<pre><code>let arr = [10, 20, 30];\r\nlet newArr = arr.myMap((x) =&gt; {\r\n    return x * 2;\r\n});\r\nconsole.log(newArr);<\/code><\/pre>\n<div>\n<p>\/\/ output : [ 20, 40, 60 ]<\/p>\n<\/div>\n<h2 id=\"4009\" class=\"ov ow gt be ox oy oz dx pa pb pc dz pd oe pe pf pg oi ph pi pj om pk pl pm pn bj\">Pollyfill for Array.filter()<\/h2>\n<div>\n<div>\n<div>\n<p><strong>Array.filter()<\/strong> syntax:<\/p>\n<pre>array.filter((currentValue, index, array) =&gt; { \/\/ function body });<\/pre>\n<p>&nbsp;<\/p>\n<div>\n<div>\n<p>As we can see, Array.filter takes a callback as an argument, and that callback can have 3 arguments &#8211; currentValue, index(optional) and array(optional)<\/p>\n<p>Now, let&#8217;s write our polyfill:<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code>Array.prototype.myFilter = function(callbackFun) {\r\n    let newArray = [];\r\n    for (let i = 0; i &lt; this.length; i++) {\r\n        if (callbackFun(this[i], i, this)) {\r\n            newArray.push(this[i]);\r\n        }\r\n    }\r\n    return newArray;\r\n};<\/code><\/pre>\n<pre><code>\r\nlet arr = [10, 15, 30];\r\n\r\nlet newArr = arr.myFilter((x) =&gt; {\r\n    return x % 10 == 0;\r\n});\r\nconsole.log(newArr);<\/code><\/pre>\n<p>\/\/Output:\u00a0 [10 , 30]<\/p>\n<h2><span style=\"font-size: 1rem;\">Pollyfill for Array.reduce()<\/span><\/h2>\n<\/div>\n<div>\n<div>\n<div>\n<div>\n<div>\n<p><strong>Array.reduce()<\/strong> syntax:<\/p>\n<pre>array.reduce((accumulator, currentValue, index, array) =&gt; {\r\n\r\n\/\/ function body\r\n\r\n}, initialValue);<\/pre>\n<div>\n<div>\n<p>As we can see, Array.reduce takes 2 arguments, first as a callback, and second an initialValue. Now again that callback can have 4 arguments &#8211; accumulator, currentValue, index(optional) and array(optional).<\/p>\n<p>Now, let&#8217;s write our polyfill:<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><code>Array.prototype.myReduce = function(callbackFun, initialValue) {\r\n    let acc = initialValue;\r\n    for (let i = 0; i &lt; this.length; i++) {\r\n        acc = acc ? callbackFun(acc, this[i], i, this) : this[i];\r\n    }\r\n    return acc;\r\n};<\/code><\/pre>\n<pre><code>\r\nlet arr = [10, 15, 30];\r\nlet newArr = arr.myReduce((accumulator, currentValue) =&gt; {\r\n    return accumulator + currentValue;\r\n}, 0);\r\nconsole.log(newArr);<\/code><\/pre>\n<p>\/\/ output : 55<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Diving into the world of polyfills for essential array methods like <code>map<\/code>, <code>filter<\/code>, and <code>reduce<\/code> provides invaluable insights into JavaScript&#8217;s underlying mechanics and empowers developers to write more robust and cross-compatible code. By understanding how these methods work under the hood and creating polyfills to support older environments, developers can ensure that their applications remain accessible and functional across a wide range of browsers and platforms.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let&#8217;s roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax: [&hellip;]<\/p>\n","protected":false},"author":1714,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":502,"footnotes":""},"categories":[3429,4684,1185,3038],"tags":[5701],"class_list":["post-60621","post","type-post","status-publish","format-standard","hentry","category-front-end-development","category-mean-2","category-node-js-2","category-react-js","tag-javascript-polyfills-map-filter-reduce"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let&#039;s roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Deepesh Agrawal\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let&#039;s roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let&#039;s roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#article\",\"name\":\"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog\",\"headline\":\"Creating Polyfills for map, filter, and reduce Array Methods\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/deepesh-agrawal\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2024-03-27T09:52:23+05:30\",\"dateModified\":\"2024-03-28T09:55:15+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#webpage\"},\"articleSection\":\"Front End Development, MEAN, Node.js, React.js, Javascript Polyfills map filter reduce\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#listItem\",\"name\":\"Creating Polyfills for map, filter, and reduce Array Methods\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#listItem\",\"position\":3,\"name\":\"Creating Polyfills for map, filter, and reduce Array Methods\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/deepesh-agrawal\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/deepesh-agrawal\\\/\",\"name\":\"Deepesh Agrawal\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/81708f6c-fb59-49cd-9ddf-3104560f79da_5432-Deepesh-Agrawal-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Deepesh Agrawal\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/\",\"name\":\"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog\",\"description\":\"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let's roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-polyfills-for-map-filter-and-reduce-array-methods\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/deepesh-agrawal\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/deepesh-agrawal\\\/#author\"},\"datePublished\":\"2024-03-27T09:52:23+05:30\",\"dateModified\":\"2024-03-28T09:55:15+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog","description":"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let's roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:","canonical_url":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#article","name":"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog","headline":"Creating Polyfills for map, filter, and reduce Array Methods","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/deepesh-agrawal\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2024-03-27T09:52:23+05:30","dateModified":"2024-03-28T09:55:15+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#webpage"},"articleSection":"Front End Development, MEAN, Node.js, React.js, Javascript Polyfills map filter reduce"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","position":2,"name":"Node.js","item":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#listItem","name":"Creating Polyfills for map, filter, and reduce Array Methods"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#listItem","position":3,"name":"Creating Polyfills for map, filter, and reduce Array Methods","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/deepesh-agrawal\/#author","url":"https:\/\/2thenew.today\/blog\/author\/deepesh-agrawal\/","name":"Deepesh Agrawal","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/81708f6c-fb59-49cd-9ddf-3104560f79da_5432-Deepesh-Agrawal-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Deepesh Agrawal"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#webpage","url":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/","name":"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog","description":"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let's roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/deepesh-agrawal\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/deepesh-agrawal\/#author"},"datePublished":"2024-03-27T09:52:23+05:30","dateModified":"2024-03-28T09:55:15+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog","og:description":"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let's roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:","og:url":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Creating Polyfills for map, filter, and reduce Array Methods | TO THE NEW Blog","twitter:description":"In this blog post, we embark on a journey to explore the inner workings of these fundamental array methods and learn how to craft polyfills for them. So, let's roll up our sleeves and dive into the world of JavaScript polyfills, unlocking the true potential of our favorite programming language. Pollyfill for Array.map() Array.map() syntax:","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"60621","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2024-03-05 19:34:11","updated":"2024-03-28 04:25:16","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/node-js-2\/\" title=\"Node.js\">Node.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating Polyfills for map, filter, and reduce Array Methods\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Node.js","link":"https:\/\/2thenew.today\/blog\/category\/node-js-2\/"},{"label":"Creating Polyfills for map, filter, and reduce Array Methods","link":"https:\/\/2thenew.today\/blog\/creating-polyfills-for-map-filter-and-reduce-array-methods\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/60621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/1714"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=60621"}],"version-history":[{"count":11,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/60621\/revisions"}],"predecessor-version":[{"id":61018,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/60621\/revisions\/61018"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=60621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=60621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=60621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}