13 lines
182 B
Plaintext
13 lines
182 B
Plaintext
|
|
||
|
function get(index, active) {
|
||
|
if (index < active) {
|
||
|
return 'finish';
|
||
|
} else if (index === active) {
|
||
|
return 'process';
|
||
|
}
|
||
|
|
||
|
return 'inactive';
|
||
|
}
|
||
|
|
||
|
module.exports = get;
|