p5.js p5.Table findRow() Method
The findRow() method of p5.Table in p5.js is used to find the first row that contains the given and value and returns a value to that row. The column that the method uses to search the row can be specified as a parameter. The method only returns the first row of the possible matches even if multiple matches exist.
findRow( value, column )
Parameters: This function accepts two parameters as mentioned above and described below:
- value: It is a String that specifies the value that has to be matched.
- column: It is a String or Number that denotes the column name or column ID of the column to be searched.
Below examples illustrate the findRow() method in p5.js:
Online editor: https://editor.p5js.org/