code: function shouldBeChecked(actionType: string): bool {
    if(actionType === LIST_ITEM_CHECK)    return true;
    if(actionType === LIST_ITEM_UNCHECK)  return false;
  
    throw new Error(`Invalid action type ${actionType}`);
  }
docs: Helper functions