@staticmethod
def extendArgs(category, originParams, newCols):
    """
    This function will update the function argument according to the mode defined by the user. Indeed some properties can be received to validate the accuracy of the data.
    Those data should be added to the different transformation functions and the columns should be passed to the final object.
    This function will ensure that by activating the mode the columns will be automatically added to the aggregated data.

    :return: The update set of columns to be considered in the Javascript function
    """
    if category == 'age':
        originParams[1] = originParams[1] + newCols
        for c in newCols:
            originParams[2][c] = 'sum'
    return originParams
