D3.js minIndex() Method Last Updated : 23 Sep, 2020 Comments Improve Suggest changes Like Article Like Report With the help of d3.minIndex() method, we can get the index of value which is found to be minimum in an array of numbers, strings or dates. We can use any kind of array we just got the index of minimum value by using this method. Syntax: d3.minIndex( iterable ) Parameter: This function has the following parameter as mentioned above and described below: iterable: Insert any kind of iterable object. Return Value: It will return the index of minimum value. Note: To execute the below examples, you have to install the d3 library by using this command prompt we have to execute the following command. npm install d3 Example 1: In this example, we can see that by using d3.minIndex() method, we are able to find the index of a minimum value in an array of numbers, strings and date formatted by this method. Filename: index.js javascript // Defining d3 contrib variable var d3 = require('d3'); var arr = [] for(var i = 0; i < 5; i++) { arr.push(i); } var index = d3.minIndex(arr); console.log(index); Output: 0 Example 2: Filename: index.js javascript // Defining d3 contrib variable var d3 = require('d3'); var index = d3.minIndex([new Date(), new Date("2020-09-01"), new Date("2020")]) console.log(index) Output: 2 Note: The above program will compile and run by using the following command: node index.js Reference: https://github.com/d3/d3-array/blob/master/README.md Comment More infoAdvertise with us Next Article D3.js minIndex() Method J Jitender_1998 Follow Improve Article Tags : JavaScript Web Technologies D3.js Similar Reads Lodash _.min() Method Lodash _.min() method is used to find the minimum element from the array. If the array is empty then undefined is returned.Syntax:_.min(array);Parameters: array: It is the array that the method iterates over to get the minimum element.Return Value: This method returns the minimum element from the ar 2 min read D3.js least() Method With the help of d3.least() method, we can get the least value from the sequence of numbers in an array by using this method. Syntax: d3.least(iterable) Parameter: This function has the following parameter as mentioned above and described below: iterable: Insert any kind of iterable object. Return V 1 min read D3.js leastIndex() Method With the help of d3.leastIndex() method, we can get the index of least value from the sequence of numbers in an array by using this method. Syntax: d3.leastIndex( iterable ) Parameter: This function has the following parameter as mentioned above and described below: iterable: Insert any kind of iter 1 min read jQWidgets jqxMenu minimize() Method jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxMenu represents a jQuery menu widget that is used to create a menu to the website or web application. The jq 2 min read p5.js NumberDict minValue() Method The minValue() method of p5.NumberDict in p5.js is used to find the lowest value in a number dictionary. A number dictionary can store multiple key-value pairs. Syntax: minValue() Parameters: This method does not accept any parameters. Return Value: It returns a Number value that is the lowest value 2 min read Like