Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Created April 18, 2017 23:29
Show Gist options
  • Save jessebeach/ba7d76b06ce6db276fcc78007e408e9c to your computer and use it in GitHub Desktop.
Save jessebeach/ba7d76b06ce6db276fcc78007e408e9c to your computer and use it in GitHub Desktop.
// $FlowFixMe https://github.com/facebook/flow/issues/1414
const trackChildren: Array<JSXElement> = node.children.filter((
child: Node,
) => {
if (child.type !== 'JSXElement') {
return false;
}
return elementType(child.openingElement) === 'track';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment