Skip to content

Instantly share code, notes, and snippets.

@piperchester
Created April 2, 2018 20:40
Show Gist options
  • Select an option

  • Save piperchester/e75b67385bdb9cd757bf712fac542dbc to your computer and use it in GitHub Desktop.

Select an option

Save piperchester/e75b67385bdb9cd757bf712fac542dbc to your computer and use it in GitHub Desktop.
Treeshaking Example
// treeshaking - remove all nodes at height 3 if they're leaves

      *
    / | \
   *  *  *
        / \
       *  *
        /  \
       *    *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment