Function html_minifier::js::aggregate_strings_into_array_filter [−][src]
pub fn aggregate_strings_into_array_filter<'a, T>(
tokens: Tokens<'a>,
array_name: &str,
filter: T
) -> Tokens<'a> where
T: Fn(&Tokens<'a>, usize) -> bool,
Expand description
Same as aggregate_strings_into_array
except it allows certain strings to not be aggregated
thanks to the filter
parameter. If it returns false
, then the string will be ignored.