[][src]Function html_minifier::js::aggregate_strings_into_array_with_separation_filter

pub fn aggregate_strings_into_array_with_separation_filter<'a, 'b, T>(
    tokens: Tokens<'a>,
    array_name: &str,
    separation_token: Token<'b>,
    filter: T
) -> Tokens<'a> where
    'b: 'a,
    T: Fn(&Tokens<'a>, usize) -> bool

Same as [aggregate_strings_into_array_with_separation] except it allows certain strings to not be aggregated thanks to the filter parameter. If it returns false, then the string will be ignored.