Add basic traverse function with tests

This commit is contained in:
2019-07-19 18:45:25 +05:30
parent 0ad6620437
commit 92444eacb8
5 changed files with 121 additions and 14 deletions
+5
View File
@@ -0,0 +1,5 @@
function isNodeSimple(node) {
return (typeof node.type === "string") || node.type === null;
}
export { isNodeSimple };