MCPcopy Create free account
hub / github.com/activejs/activejs / wouldDispatch

Method wouldDispatch

packages/core/src/lib/dict-unit.ts:85–87  ·  view source on GitHub ↗

* Extends UnitBase.wouldDispatch and adds additional check for Object dictionary isDict, * which cannot be bypassed even by using force. * * @param value The value to be dispatched. * @param force Whether dispatch-checks should be bypassed or not. * @returns A

(value: T, force?: boolean)

Source from the content-addressed store, hash-verified

83 * @category Common Units
84 */
85 wouldDispatch(value: T, force?: boolean): boolean {
86 return this.isValidValue(value) && super.wouldDispatch(value, force);
87 }
88
89 /**
90 * Adds a property by setting given property-value on the given key in the dictionary {@link value}. \

Callers

nothing calls this directly

Calls 1

isValidValueMethod · 0.95

Tested by

no test coverage detected