MCPcopy
hub / github.com/josdejong/mathjs / isAlwaysBoolean

Function isAlwaysBoolean

src/function/algebra/simplifyCore.js:54–56  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

52 // test if a node will always have a boolean value (true/false)
53 // not sure if this list is complete
54 function isAlwaysBoolean (node) {
55 return isOperatorNode(node) && ['and', 'not', 'or'].includes(node.op)
56 }
57
58 const { hasProperty, isCommutative } =
59 createUtil({ FunctionNode, OperatorNode, SymbolNode })

Callers 1

_simplifyCoreFunction · 0.85

Calls 1

isOperatorNodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…