function filterData(dataArr, searchText, callback) {
  const data = dataArr.filter(
    (entry) => entry.toUpperCase().indexOf(searchText.toUpperCase()) > -ONE
  );
  callback(data);
}
/**
 * Returns subset of data array that matches text.
 * @param {Array} dataArr The array of text to filter
 * @param {String} searchText The text to filter matches in array.
 * @param {Function} callback The function to call, given subset of array.
 */
Returns subset of data array that matches text.
@param {Array} dataArr The array of text to filter
@param {String} searchText The text to filter matches in array.
@param {Function} callback The function to call, given subset of array.
Returns subset of data array that matches text . @param { Array } dataArr The array of text to filter @param { String } searchText The text to filter matches in array . @param { Function } callback The function to call given subset of array .
function filterData(dataArr, searchText, callback) {
  const data = dataArr.filter(
    (entry) => entry.toUpperCase().indexOf(searchText.toUpperCase()) > -ONE
  );
  callback(data);
}
function filterData ( dataArr , searchText , callback ) { const data = dataArr . filter ( ( entry ) => entry . toUpperCase ( ) . indexOf ( searchText . toUpperCase ( ) ) > - ONE ) ; callback ( data ) ; }
Returns subset of data array that matches text.
Returns subset of data array that matches text .