Sep 5, 2018 · 1 min read
Hi Jonathan thanks! The getStatusIndex is a utility class that returns an array of two numbers (according to the value of the argument passed to the function):
function getStatusIndex(interacted) {
return interacted ? [1, 0] : [0,1];
}