Skip to content
Snippets Groups Projects
Commit 9b5c03d6 authored by Yan, Andrew N.'s avatar Yan, Andrew N.
Browse files

use .includes instead of .indexOf

parent efe2c3f1
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ export const availableTimeseriesSelector = createSelector( ...@@ -28,7 +28,7 @@ export const availableTimeseriesSelector = createSelector(
for (const variableID of Object.keys(variables).sort()) { for (const variableID of Object.keys(variables).sort()) {
// start the next iteration if a variable is not a // start the next iteration if a variable is not a
// series returned by the allTimeSeriesSelector // series returned by the allTimeSeriesSelector
if (timeSeriesVariables.indexOf(variableID) === -1) { if (!timeSeriesVariables.includes(variableID)) {
continue; continue;
} }
const variable = variables[variableID]; const variable = variables[variableID];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment