{"id":259479,"date":"2024-05-19T02:25:05","date_gmt":"2024-05-19T02:25:05","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=259479"},"modified":"2024-05-19T02:25:05","modified_gmt":"2024-05-19T02:25:05","slug":"how-to-find-minimum-value-in-js","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/","title":{"rendered":"How to find minimum value in JS?"},"content":{"rendered":"<p>Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several methods and techniques to accomplish this. In this article, we will explore different ways to find the minimum value in JavaScript, along with some frequently asked questions related to this topic.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#How_to_find_minimum_value_in_JS\" title=\"How to find minimum value in JS?\">How to find minimum value in JS?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#1_How_does_Mathmin_work\" title=\"1. How does Math.min() work?\">1. How does Math.min() work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#2_Can_Mathmin_be_used_with_a_variable_number_of_arguments\" title=\"2. Can Math.min() be used with a variable number of arguments?\">2. Can Math.min() be used with a variable number of arguments?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#3_How_to_find_the_minimum_value_in_an_array_using_a_loop\" title=\"3. How to find the minimum value in an array using a loop?\">3. How to find the minimum value in an array using a loop?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#4_How_to_find_the_minimum_value_using_reduce_function\" title=\"4. How to find the minimum value using reduce() function?\">4. How to find the minimum value using reduce() function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#5_Can_we_find_the_minimum_value_in_an_array_of_objects\" title=\"5. Can we find the minimum value in an array of objects?\">5. Can we find the minimum value in an array of objects?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#6_How_to_handle_an_empty_array_when_finding_the_minimum_value\" title=\"6. How to handle an empty array when finding the minimum value?\">6. How to handle an empty array when finding the minimum value?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#7_Can_we_find_the_minimum_value_in_a_string_array\" title=\"7. Can we find the minimum value in a string array?\">7. Can we find the minimum value in a string array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#8_How_to_find_the_minimum_value_without_the_Mathmin_function\" title=\"8. How to find the minimum value without the Math.min() function?\">8. How to find the minimum value without the Math.min() function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#9_What_is_the_difference_between_Mathmin_and_Mathminapply\" title=\"9. What is the difference between Math.min() and Math.min.apply()?\">9. What is the difference between Math.min() and Math.min.apply()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#10_What_happens_if_non-numeric_values_are_present_in_the_array\" title=\"10. What happens if non-numeric values are present in the array?\">10. What happens if non-numeric values are present in the array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#11_Can_we_use_Mathmin_to_find_the_minimum_value_among_non-number_values\" title=\"11. Can we use Math.min() to find the minimum value among non-number values?\">11. Can we use Math.min() to find the minimum value among non-number values?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#12_How_to_find_the_minimum_value_in_JSON_data\" title=\"12. How to find the minimum value in JSON data?\">12. How to find the minimum value in JSON data?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_find_minimum_value_in_JS\"><\/span>How to find minimum value in JS?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>The easiest way to find the minimum value in JavaScript is by using the Math.min() function.<\/strong> This function takes a list of numbers as arguments and returns the smallest value among them. Here&#8217;s an example:<\/p>\n<p>&#8220;`javascript<br \/>\nlet numbers = [8, 4, 15, 2, 10];<br \/>\nlet minimum = Math.min(&#8230;numbers);<br \/>\nconsole.log(minimum); \/\/ Output: 2<br \/>\n&#8220;`<\/p>\n<p>In the above code snippet, we have an array of numbers. By using the spread syntax (`&#8230;`), we pass the individual numbers as arguments to the Math.min() function. The returned value is then assigned to the `minimum` variable and displayed using `console.log()`.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_How_does_Mathmin_work\"><\/span>1. How does Math.min() work?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The Math.min() function compares the arguments passed to it and returns the smallest value. It can accept any number of arguments, separated by commas.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Can_Mathmin_be_used_with_a_variable_number_of_arguments\"><\/span>2. Can Math.min() be used with a variable number of arguments?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, the Math.min() function can accept a variable number of arguments. You can use the spread syntax (`&#8230;`) to pass an array of numbers as arguments.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_to_find_the_minimum_value_in_an_array_using_a_loop\"><\/span>3. How to find the minimum value in an array using a loop?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can use a loop, such as a for loop or forEach loop, to iterate over the array and keep track of the minimum value.<\/p>\n<p>&#8220;`javascript<br \/>\nlet numbers = [8, 4, 15, 2, 10];<br \/>\nlet minimum = numbers[0]; \/\/ Assuming the first element is the minimum<\/p>\n<p>numbers.forEach(num => {<br \/>\n  if (num < minimum) {<br \/>\n    minimum = num;<br \/>\n  }<br \/>\n});<\/p>\n<p>console.log(minimum); \/\/ Output: 2<br \/>\n&#8220;`<\/p>\n<p>In the above example, we initialize the `minimum` variable with the first element of the array. Then, we loop through all the elements and update the `minimum` value if a smaller number is found.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_to_find_the_minimum_value_using_reduce_function\"><\/span>4. How to find the minimum value using reduce() function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The reduce() function allows us to perform a specified operation on all elements of an array and return a single value. Here&#8217;s how you can use it to find the minimum value:<\/p>\n<p>&#8220;`javascript<br \/>\nlet numbers = [8, 4, 15, 2, 10];<br \/>\nlet minimum = numbers.reduce((min, num) => Math.min(min, num));<\/p>\n<p>console.log(minimum); \/\/ Output: 2<br \/>\n&#8220;`<\/p>\n<p>In the above code, we use the reduce() function to compare each array element with the accumulated minimum value. The Math.min() function is used as the comparison operator to determine the minimum value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Can_we_find_the_minimum_value_in_an_array_of_objects\"><\/span>5. Can we find the minimum value in an array of objects?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, you can find the minimum value in an array of objects by comparing a specific property.<\/p>\n<p>&#8220;`javascript<br \/>\nlet students = [<br \/>\n  { name: &#8216;Alice&#8217;, grade: 90 },<br \/>\n  { name: &#8216;Bob&#8217;, grade: 80 },<br \/>\n  { name: &#8216;Charlie&#8217;, grade: 95 }<br \/>\n];<\/p>\n<p>let minimumGrade = Math.min(&#8230;students.map(student => student.grade));<\/p>\n<p>console.log(minimumGrade); \/\/ Output: 80<br \/>\n&#8220;`<\/p>\n<p>In the above example, we use the map() function to create a new array with only the grades. Then, we apply Math.min() to find the minimum grade among them.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_How_to_handle_an_empty_array_when_finding_the_minimum_value\"><\/span>6. How to handle an empty array when finding the minimum value?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If the array is empty, both the Math.min() method and the loop-based solution will return `Infinity` as there are no numbers to compare. To handle this case, you can add a check before finding the minimum value.<\/p>\n<p>&#8220;`javascript<br \/>\nlet numbers = [];<br \/>\nlet minimum = numbers.length > 0 ? Math.min(&#8230;numbers) : undefined;<\/p>\n<p>console.log(minimum); \/\/ Output: undefined<br \/>\n&#8220;`<\/p>\n<p>In the above code, we use a ternary conditional (`? :`) to check if the array has any elements. If it does, we find the minimum value; otherwise, we assign `undefined` to the `minimum` variable.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Can_we_find_the_minimum_value_in_a_string_array\"><\/span>7. Can we find the minimum value in a string array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, you can find the minimum value in a string array as well. In JavaScript, strings can be compared using normal comparison operators like `<`. However, the comparison is based on lexicographic (dictionary) order rather than numerical value.\n\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"8_How_to_find_the_minimum_value_without_the_Mathmin_function\"><\/span>8. How to find the minimum value without the Math.min() function?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can manually implement the minimum finding algorithm using a loop. By comparing each number with the current minimum and updating it accordingly, you can find the minimum value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_What_is_the_difference_between_Mathmin_and_Mathminapply\"><\/span>9. What is the difference between Math.min() and Math.min.apply()?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The Math.min() function takes comma-separated arguments, whereas Math.min.apply() accepts an array of numbers as its arguments. Both methods achieve the same result.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_What_happens_if_non-numeric_values_are_present_in_the_array\"><\/span>10. What happens if non-numeric values are present in the array?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If there are non-numeric values in the array, the Math.min() method will return NaN as the result.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_Can_we_use_Mathmin_to_find_the_minimum_value_among_non-number_values\"><\/span>11. Can we use Math.min() to find the minimum value among non-number values?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No, Math.min() only works with numeric values. If you try to find the minimum value among non-number values, it will return NaN.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_How_to_find_the_minimum_value_in_JSON_data\"><\/span>12. How to find the minimum value in JSON data?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To find the minimum value in JSON data, you need to parse the JSON and extract the necessary values. Once you have the desired numeric values, you can apply any of the aforementioned methods to find the minimum value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several methods and techniques to accomplish this. In this article, we will explore different ways to find the minimum value in JavaScript, along with some frequently asked questions related to this topic. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to find minimum value in JS?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#more-259479\">Read more<span class=\"screen-reader-text\">How to find minimum value in JS?<\/span><\/a><\/p>\n","protected":false},"author":66,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-259479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to find minimum value in JS?<\/title>\n<meta name=\"description\" content=\"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to find minimum value in JS?\" \/>\n<meta property=\"og:description\" content=\"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-19T02:25:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jamie Steele\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jamie Steele\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\"},\"author\":{\"name\":\"Jamie Steele\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0\"},\"headline\":\"How to find minimum value in JS?\",\"datePublished\":\"2024-05-19T02:25:05+00:00\",\"dateModified\":\"2024-05-19T02:25:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\"},\"wordCount\":630,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\",\"name\":\"How to find minimum value in JS?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-05-19T02:25:05+00:00\",\"dateModified\":\"2024-05-19T02:25:05+00:00\",\"description\":\"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find minimum value in JS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0\",\"name\":\"Jamie Steele\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Jamie Steele\"},\"description\":\"Guest author Jamie Steele has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to find minimum value in JS?","description":"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several","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:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/","og_locale":"en_US","og_type":"article","og_title":"How to find minimum value in JS?","og_description":"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several","og_url":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-05-19T02:25:05+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Jamie Steele","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Jamie Steele","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/"},"author":{"name":"Jamie Steele","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0"},"headline":"How to find minimum value in JS?","datePublished":"2024-05-19T02:25:05+00:00","dateModified":"2024-05-19T02:25:05+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/"},"wordCount":630,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/","url":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/","name":"How to find minimum value in JS?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-05-19T02:25:05+00:00","dateModified":"2024-05-19T02:25:05+00:00","description":"Finding the minimum value in JavaScript is a common task that often arises when working with arrays or collections of numbers. JavaScript provides several","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-minimum-value-in-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to find minimum value in JS?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0","name":"Jamie Steele","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Jamie Steele"},"description":"Guest author Jamie Steele has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/259479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=259479"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/259479\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=259479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=259479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=259479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}