{"id":2288,"date":"2024-08-05T14:44:55","date_gmt":"2024-08-05T13:44:55","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=2288"},"modified":"2024-08-05T14:44:56","modified_gmt":"2024-08-05T13:44:56","slug":"javascripts-filter-method","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/","title":{"rendered":"Understanding JavaScript&#8217;s filter Method"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>Introduction<\/strong><\/h3>\n\n\n\n<p>In JavaScript, arrays are one of the most versatile data structures. When dealing with arrays, the ability to filter data based on specific criteria is a common requirement. Understanding JavaScript&#8217;s filter Method is essential for creating new arrays that contain only the elements meeting certain conditions. This article will explore how to use the filter method effectively, with practical examples to demonstrate its power and versatility.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is the <code>filter<\/code> Method?<\/strong><\/h3>\n\n\n\n<p>The <code>filter<\/code> method is an array method that creates a new array with all elements that pass the test implemented by the provided function. It does not modify the original array.<\/p>\n\n\n\n<p><strong>Syntax:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">array.filter(callback(element[, index[, array]])[, thisArg])\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>callback<\/strong>: A function that tests each element. Returns <code>true<\/code> to keep the element, <code>false<\/code> otherwise.<\/li>\n\n\n\n<li><strong>element<\/strong>: The current element being processed.<\/li>\n\n\n\n<li><strong>index<\/strong> <em>(optional)<\/em>: The index of the current element.<\/li>\n\n\n\n<li><strong>array<\/strong> <em>(optional)<\/em>: The array <code>filter<\/code> was called upon.<\/li>\n\n\n\n<li><strong>thisArg<\/strong> <em>(optional)<\/em>: Value to use as <code>this<\/code> when executing <code>callback<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic Usage<\/strong><\/h3>\n\n\n\n<p>To understand the <code>filter<\/code> method, let\u2019s start with a basic example. Suppose you have an array of numbers and you want to create a new array that contains only the numbers greater than 10.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">const numbers = [5, 12, 8, 130, 44];\n\nconst filteredNumbers = numbers.filter(number =&gt; number &gt; 10);\n\nconsole.log(filteredNumbers); \/\/ Output: [12, 130, 44]\n<\/code><\/pre>\n\n\n\n<p>In this example, the <code>filter<\/code> method tests each element with the condition <code>number &gt; 10<\/code>, and only the numbers that satisfy this condition are included in the <code>filteredNumbers<\/code> array.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Filtering Objects<\/strong><\/h3>\n\n\n\n<p>The <code>filter<\/code> method is also useful when working with arrays of objects. For instance, consider an array of user objects and you want to filter out users who are active.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">const users = [\n    { name: 'Alice', active: true },\n    { name: 'Bob', active: false },\n    { name: 'Charlie', active: true }\n];\n\nconst activeUsers = users.filter(user =&gt; user.active);\n\nconsole.log(activeUsers);\n\/\/ Output: [{ name: 'Alice', active: true }, { name: 'Charlie', active: true }]\n<\/code><\/pre>\n\n\n\n<p>Here, the <code>filter<\/code> method selects only the users where the <code>active<\/code> property is <code>true<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Combining <code>filter<\/code> with Other Array Methods<\/strong><\/h3>\n\n\n\n<p>The <code>filter<\/code> method can be combined with other array methods like <code>map<\/code> and <code>reduce<\/code> for more complex operations. For example, you might want to first filter the data and then transform it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">const products = [\n    { name: 'Laptop', price: 900 },\n    { name: 'Phone', price: 500 },\n    { name: 'Tablet', price: 300 }\n];\n\nconst affordableProducts = products\n    .filter(product =&gt; product.price &lt; 600)\n    .map(product =&gt; product.name);\n\nconsole.log(affordableProducts); \/\/ Output: ['Phone', 'Tablet']\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Avoid Side Effects<\/strong>: Ensure the callback function does not modify the original array.<\/li>\n\n\n\n<li><strong>Use Arrow Functions<\/strong>: For concise syntax and clarity.<\/li>\n\n\n\n<li><strong>Combine with Other Methods<\/strong>: Enhance functionality by chaining <code>filter<\/code> with other methods like <code>map<\/code> and <code>reduce<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>The filter method is an essential tool in JavaScript for creating new arrays based on specific criteria. Understanding JavaScript&#8217;s filter Method allows you to handle array data more effectively and write cleaner, more readable code. By mastering this method, you can refine and manipulate arrays to suit your needs with greater precision.<\/p>\n\n\n\n<p>Feel free to experiment with the <code>filter<\/code> method in various scenarios to gain a deeper understanding of its capabilities and applications.<\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\/blog\/removing-duplicates-from-an-array\/\">Learn how to remove duplicates from an array in JavaScript<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In JavaScript, arrays are one of the most versatile data structures. When dealing with arrays, the ability<\/p>\n","protected":false},"author":3,"featured_media":2290,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24],"tags":[99],"class_list":["post-2288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-software-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript&#039;s filter Method<\/title>\n<meta name=\"description\" content=\"Learn how to use JavaScript&#039;s filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript&#039;s filter Method\" \/>\n<meta property=\"og:description\" content=\"Learn how to use JavaScript&#039;s filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-05T13:44:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-05T13:44:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"607\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kene Samuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/\"},\"author\":{\"name\":\"Kene Samuel\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/c501609bab46c16807eb32106074f206\"},\"headline\":\"Understanding JavaScript&#8217;s filter Method\",\"datePublished\":\"2024-08-05T13:44:55+00:00\",\"dateModified\":\"2024-08-05T13:44:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/\"},\"wordCount\":402,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/IMG-20240805-WA0002.jpg\",\"keywords\":[\"software development\"],\"articleSection\":[\"programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/\",\"name\":\"JavaScript's filter Method\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/IMG-20240805-WA0002.jpg\",\"datePublished\":\"2024-08-05T13:44:55+00:00\",\"dateModified\":\"2024-08-05T13:44:56+00:00\",\"description\":\"Learn how to use JavaScript's filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/IMG-20240805-WA0002.jpg\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/IMG-20240805-WA0002.jpg\",\"width\":1080,\"height\":607},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascripts-filter-method\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"programming\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/programming\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Understanding JavaScript&#8217;s filter Method\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/c501609bab46c16807eb32106074f206\",\"name\":\"Kene Samuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g\",\"caption\":\"Kene Samuel\"},\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/kene\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript's filter Method","description":"Learn how to use JavaScript's filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...","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:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript's filter Method","og_description":"Learn how to use JavaScript's filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...","og_url":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/","article_published_time":"2024-08-05T13:44:55+00:00","article_modified_time":"2024-08-05T13:44:56+00:00","og_image":[{"width":1080,"height":607,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","type":"image\/jpeg"}],"author":"Kene Samuel","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/"},"author":{"name":"Kene Samuel","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/c501609bab46c16807eb32106074f206"},"headline":"Understanding JavaScript&#8217;s filter Method","datePublished":"2024-08-05T13:44:55+00:00","dateModified":"2024-08-05T13:44:56+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/"},"wordCount":402,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","keywords":["software development"],"articleSection":["programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/","url":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/","name":"JavaScript's filter Method","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","datePublished":"2024-08-05T13:44:55+00:00","dateModified":"2024-08-05T13:44:56+00:00","description":"Learn how to use JavaScript's filter method to create new arrays based on specific criteria. Explore practical examples and best practices ...","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","width":1080,"height":607},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/javascripts-filter-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"programming","item":"https:\/\/codeflarelimited.com\/blog\/programming\/"},{"@type":"ListItem","position":3,"name":"Understanding JavaScript&#8217;s filter Method"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/c501609bab46c16807eb32106074f206","name":"Kene Samuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e1716cd715a5b5491e1f2da373b52f2f73aeb37d268baff34719116e386d848?s=96&d=mm&r=g","caption":"Kene Samuel"},"url":"https:\/\/codeflarelimited.com\/blog\/author\/kene\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2024\/08\/IMG-20240805-WA0002.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=2288"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2288\/revisions"}],"predecessor-version":[{"id":2291,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/2288\/revisions\/2291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/2290"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=2288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=2288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=2288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}