How to use the isBooleanLiteral function from babel-types
Find comprehensive JavaScript babel-types.isBooleanLiteral code examples handpicked from public code repositorys.
GitHub: bluepeople1/mpx
39 40 41 42 43 44 45 46 47 48
const args = path.node.arguments if ( t.isMemberExpression(callee) && t.isThisExpression(callee.object) && (callee.property.name === '__travel' || callee.property.value === '__travel') && t.isBooleanLiteral(args[2]) && args[2].value === true ) { isProps = true path.isProps = true
349
0
0
+ 5 other calls in file
babel-types.identifier is the most popular function in babel-types (4076 examples)