{"id":220040,"date":"2023-11-19T20:00:42","date_gmt":"2023-11-19T20:00:42","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/"},"modified":"2023-11-19T20:00:42","modified_gmt":"2023-11-19T20:00:42","slug":"how-to-find-lowest-value-in-javascript-array","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/","title":{"rendered":"How to find lowest value in JavaScript array?"},"content":{"rendered":"<p>JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the lowest value within an array. In this article, we will explore different ways to accomplish this using JavaScript.<\/p>\n<p><strong>How to find the lowest value in a JavaScript array?<\/strong><\/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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#Method_1_Using_a_for_loop\" title=\"Method 1: Using a for loop\">Method 1: Using a for loop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#Frequently_Asked_Questions_FAQs\" title=\"Frequently Asked Questions (FAQs)\">Frequently Asked Questions (FAQs)<\/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-lowest-value-in-javascript-array\/#1_Can_I_find_the_lowest_value_in_an_array_of_strings\" title=\"1. Can I find the lowest value in an array of strings?\">1. Can I find the lowest value in an array of strings?<\/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-lowest-value-in-javascript-array\/#2_What_if_the_array_is_empty\" title=\"2. What if the array is empty?\">2. What if the array is empty?<\/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-lowest-value-in-javascript-array\/#3_How_can_I_find_the_index_of_the_lowest_value_in_the_array\" title=\"3. How can I find the index of the lowest value in the array?\">3. How can I find the index of the lowest value in the array?<\/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-lowest-value-in-javascript-array\/#4_Is_there_a_way_to_find_the_lowest_value_in_an_array_without_explicitly_iterating_over_it\" title=\"4. Is there a way to find the lowest value in an array without explicitly iterating over it?\">4. Is there a way to find the lowest value in an array without explicitly iterating over it?<\/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-lowest-value-in-javascript-array\/#5_Can_I_use_the_sort_method_to_find_the_lowest_value\" title=\"5. Can I use the sort() method to find the lowest value?\">5. Can I use the sort() method to find the lowest 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-lowest-value-in-javascript-array\/#6_How_do_I_find_the_lowest_value_in_a_multidimensional_array\" title=\"6. How do I find the lowest value in a multidimensional array?\">6. How do I find the lowest value in a multidimensional 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-lowest-value-in-javascript-array\/#7_Can_I_find_the_lowest_value_in_an_array_with_negative_numbers\" title=\"7. Can I find the lowest value in an array with negative numbers?\">7. Can I find the lowest value in an array with negative numbers?<\/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-lowest-value-in-javascript-array\/#8_How_do_these_methods_handle_arrays_with_non-number_elements\" title=\"8. How do these methods handle arrays with non-number elements?\">8. How do these methods handle arrays with non-number elements?<\/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-lowest-value-in-javascript-array\/#9_Can_I_find_the_lowest_value_in_a_large_array_efficiently\" title=\"9. Can I find the lowest value in a large array efficiently?\">9. Can I find the lowest value in a large array efficiently?<\/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-lowest-value-in-javascript-array\/#10_Can_I_find_the_lowest_value_in_an_array_with_repeated_values\" title=\"10. Can I find the lowest value in an array with repeated values?\">10. Can I find the lowest value in an array with repeated 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-lowest-value-in-javascript-array\/#11_How_do_I_find_the_lowest_unique_value_in_an_array\" title=\"11. How do I find the lowest unique value in an array?\">11. How do I find the lowest unique value in an array?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#12_Can_I_find_the_lowest_value_in_a_sorted_array_faster\" title=\"12. Can I find the lowest value in a sorted array faster?\">12. Can I find the lowest value in a sorted array faster?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Method_1_Using_a_for_loop\"><\/span><strong>Method 1: Using a for loop<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>By iterating over each element in the array, we can compare them to find the lowest value.<\/p>\n<p>&#8220;`javascript<br \/>\nlet array = [5, 10, 3, 8, 2];<br \/>\nlet lowest = array[0];<\/p>\n<p>for(let i = 1; i < array.length; i++) {<br \/>\n  if(array[i] < lowest) {<br \/>\n    lowest = array[i];<br \/>\n  }<br \/>\n}<\/p>\n<p>console.log(&#8220;The lowest value is: &#8221; + lowest);<br \/>\n&#8220;`<\/p>\n<p><strong>Method 2: Using Math.min() and the spread operator<\/strong><\/p>\n<p>The spread operator (&#8230;) can be used to pass the array elements as arguments to Math.min() function, returning the lowest value.<\/p>\n<p>&#8220;`javascript<br \/>\nlet array = [5, 10, 3, 8, 2];<br \/>\nlet lowest = Math.min(&#8230;array);<\/p>\n<p>console.log(&#8220;The lowest value is: &#8221; + lowest);<br \/>\n&#8220;`<\/p>\n<p><strong>Method 3: Using Array.reduce()<\/strong><\/p>\n<p>The Array.reduce() method can be utilized to sequentially reduce the array to a single value, in this case finding the lowest value.<\/p>\n<p>&#8220;`javascript<br \/>\nlet array = [5, 10, 3, 8, 2];<br \/>\nlet lowest = array.reduce((acc, current) => Math.min(acc, current));<\/p>\n<p>console.log(&#8220;The lowest value is: &#8221; + lowest);<br \/>\n&#8220;`<\/p>\n<p><strong>Method 4: Using the spread operator and Math.min.apply()<\/strong><\/p>\n<p>Sometimes, when dealing with older browsers that don&#8217;t support the spread operator, you can use the apply() method to execute Math.min() on the array elements.<\/p>\n<p>&#8220;`javascript<br \/>\nlet array = [5, 10, 3, 8, 2];<br \/>\nlet lowest = Math.min.apply(null, array);<\/p>\n<p>console.log(&#8220;The lowest value is: &#8221; + lowest);<br \/>\n&#8220;`<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_FAQs\"><\/span><strong>Frequently Asked Questions (FAQs)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_I_find_the_lowest_value_in_an_array_of_strings\"><\/span><strong>1. Can I find the lowest value in an array of strings?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>No, the methods mentioned above work only for arrays containing numbers. For an array of strings, you would need to implement a custom solution.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_What_if_the_array_is_empty\"><\/span><strong>2. What if the array is empty?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>If the array is empty, the methods above will not work as there are no elements to compare and find the lowest value. You should handle this scenario with additional conditionals or error handling.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_can_I_find_the_index_of_the_lowest_value_in_the_array\"><\/span><strong>3. How can I find the index of the lowest value in the array?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>To find the index of the lowest value, modify the for loop in Method 1 to keep track of the index. Alternatively, use the indexOf() method in combination with the lowest value to find the index.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Is_there_a_way_to_find_the_lowest_value_in_an_array_without_explicitly_iterating_over_it\"><\/span><strong>4. Is there a way to find the lowest value in an array without explicitly iterating over it?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>No, finding the lowest value in an array inherently requires iterating over its elements in some form.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Can_I_use_the_sort_method_to_find_the_lowest_value\"><\/span><strong>5. Can I use the sort() method to find the lowest value?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the sort() method to sort the array in ascending order and then access the first element to get the lowest value. However, this sorting process is less efficient than the methods mentioned above.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_How_do_I_find_the_lowest_value_in_a_multidimensional_array\"><\/span><strong>6. How do I find the lowest value in a multidimensional array?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>To find the lowest value in a multidimensional array, you would need to nest loops or utilize additional methods such as flat() or reduce(). These methods depend on the array structure and data types.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Can_I_find_the_lowest_value_in_an_array_with_negative_numbers\"><\/span><strong>7. Can I find the lowest value in an array with negative numbers?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Absolutely, the methods mentioned above work perfectly fine with arrays that contain negative numbers.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_How_do_these_methods_handle_arrays_with_non-number_elements\"><\/span><strong>8. How do these methods handle arrays with non-number elements?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>If the array contains non-number elements, such as strings or objects, these methods may not produce the expected result. Always ensure the array elements are of the same data type if you intend to find the lowest value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_Can_I_find_the_lowest_value_in_a_large_array_efficiently\"><\/span><strong>9. Can I find the lowest value in a large array efficiently?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, the efficiency of these methods depends on the number of elements in the array, but they are generally quite efficient and suitable for large arrays.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Can_I_find_the_lowest_value_in_an_array_with_repeated_values\"><\/span><strong>10. Can I find the lowest value in an array with repeated values?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Absolutely, these methods work perfectly fine even if the array contains repeated values.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_How_do_I_find_the_lowest_unique_value_in_an_array\"><\/span><strong>11. How do I find the lowest unique value in an array?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Finding the lowest unique value in an array is a more complex task. It involves keeping track of the frequency of each element and comparing them to find the lowest unique value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Can_I_find_the_lowest_value_in_a_sorted_array_faster\"><\/span><strong>12. Can I find the lowest value in a sorted array faster?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>If the array is already sorted in ascending order, you can simply access the first element to obtain the lowest value. This approach is faster than sorting the array again.<\/p>\n<p>In conclusion, finding the lowest value in a JavaScript array can be achieved through different methods depending on your requirements. The methods explained above provide you with various techniques to find the lowest value efficiently, catering to different scenarios and array structures.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the lowest value within an array. In this article, we will explore different ways to accomplish this using JavaScript. How to find the lowest value in a JavaScript array? Method 1: Using &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to find lowest value in JavaScript array?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#more-220040\">Read more<span class=\"screen-reader-text\">How to find lowest value in JavaScript array?<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-220040","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 lowest value in JavaScript array?<\/title>\n<meta name=\"description\" content=\"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the\" \/>\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-lowest-value-in-javascript-array\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to find lowest value in JavaScript array?\" \/>\n<meta property=\"og:description\" content=\"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\" \/>\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=\"2023-11-19T20:00:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"164\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Darla Clarke\" \/>\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=\"Darla Clarke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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-lowest-value-in-javascript-array\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\"},\"author\":{\"name\":\"Darla Clarke\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e\"},\"headline\":\"How to find lowest value in JavaScript array?\",\"datePublished\":\"2023-11-19T20:00:42+00:00\",\"dateModified\":\"2023-11-19T20:00:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\"},\"wordCount\":767,\"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-lowest-value-in-javascript-array\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\",\"name\":\"How to find lowest value in JavaScript array?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2023-11-19T20:00:42+00:00\",\"dateModified\":\"2023-11-19T20:00:42+00:00\",\"description\":\"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find lowest value in JavaScript array?\"}]},{\"@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\/8fb46297981687fe77339d265491391e\",\"name\":\"Darla Clarke\",\"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\":\"Darla Clarke\"},\"description\":\"Guest author Darla Clarke 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 lowest value in JavaScript array?","description":"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the","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-lowest-value-in-javascript-array\/","og_locale":"en_US","og_type":"article","og_title":"How to find lowest value in JavaScript array?","og_description":"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the","og_url":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2023-11-19T20:00:42+00:00","og_image":[{"width":500,"height":164,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","type":"image\/png"}],"author":"Darla Clarke","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Darla Clarke","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/"},"author":{"name":"Darla Clarke","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/8fb46297981687fe77339d265491391e"},"headline":"How to find lowest value in JavaScript array?","datePublished":"2023-11-19T20:00:42+00:00","dateModified":"2023-11-19T20:00:42+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/"},"wordCount":767,"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-lowest-value-in-javascript-array\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/","url":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/","name":"How to find lowest value in JavaScript array?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2023-11-19T20:00:42+00:00","dateModified":"2023-11-19T20:00:42+00:00","description":"JavaScript arrays are versatile data structures that allow you to store multiple values in a single variable. Occasionally, you may need to find the","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-find-lowest-value-in-javascript-array\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to find lowest value in JavaScript array?"}]},{"@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\/8fb46297981687fe77339d265491391e","name":"Darla Clarke","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":"Darla Clarke"},"description":"Guest author Darla Clarke 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\/220040","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\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=220040"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/220040\/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=220040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=220040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=220040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}