MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / hasCondition

Method hasCondition

packages/core/src/document/node/node.ts:379–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377 }
378
379 hasCondition() {
380 const v = this.getExtraProp('condition', false)?.getValue()
381 return v != null && v !== '' && v !== true
382 }
383
384 /**
385 * has loop when 1. loop is validArray with length > 1 ; OR 2. loop is variable object

Callers

nothing calls this directly

Calls 2

getExtraPropMethod · 0.95
getValueMethod · 0.45

Tested by

no test coverage detected