Created
February 19, 2015 00:50
-
-
Save liddiard/05dd0bc0e44c9e87289c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function astContains(ast, nodeType) { | |
walk(ast, function(node) { | |
if (node.type === nodeType) | |
return true; | |
}); | |
return false; | |
} |
amoskyler
commented
Feb 19, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment