MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / isObjectExpression

Function isObjectExpression

src/mdx/search.mjs:17–22  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

15const slugify = slugifyWithCounter()
16
17function isObjectExpression(node) {
18 return (
19 node.type === 'mdxTextExpression' &&
20 node.data?.estree?.body?.[0]?.expression?.type === 'ObjectExpression'
21 )
22}
23
24function excludeObjectExpressions(tree) {
25 return filter(tree, (node) => !isObjectExpression(node))

Callers 1

excludeObjectExpressionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected