This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

20 lines
299 B
JavaScript
Raw Normal View History

2021-04-02 02:24:13 +03:00
const State = {
UNDETERMINED: 0,
FAILED: 1,
BEGAN: 2,
CANCELLED: 3,
ACTIVE: 4,
END: 5,
};
State.print = state => {
const keys = Object.keys(State);
for (let i = 0; i < keys.length; i++) {
if (state === State[keys[i]]) {
return keys[i];
}
}
};
export default State;