Skip to main content

union_paths

Function union_paths 

Source
pub fn union_paths(
    committed: &[String],
    revalidated: Vec<String>,
) -> Vec<String>
Expand description

What: The paths of a replay: those already committed, then the ones revalidation added that are new. Why: A path both lists name is one path of the commit.

In TS you’d write (pseudocode):

[...new Set([...committedPaths, ...revalidatedPaths])]