How to use the isRegExpLiteral function from @babel/types
Find comprehensive JavaScript @babel/types.isRegExpLiteral code examples handpicked from public code repositorys.
GitHub: jiangjing1994/fishhook
33 34 35 36 37 38 39 40 41 42
} // 获取Props默认值 function getDefaultVal(node) { if ( types.isRegExpLiteral(node) || types.isBooleanLiteral(node) || types.isNumericLiteral(node) || types.isStringLiteral(node) ) {
2
8
2
@babel/types.identifier is the most popular function in @babel/types (20936 examples)