Skip to content

Instantly share code, notes, and snippets.

@jessebeach
Created April 18, 2017 23:35
Show Gist options
  • Save jessebeach/0464db8dbab96a809c2d8d04e9fdb5d0 to your computer and use it in GitHub Desktop.
Save jessebeach/0464db8dbab96a809c2d8d04e9fdb5d0 to your computer and use it in GitHub Desktop.
// see https://github.com/facebook/flow/issues/1414
const trackChildren: Array<any> = node.children.filter((child) => {
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