Home > rc-js-util > _Debug > runBlock
Convenience method to run multiple asserts.
Signature:
static runBlock(this: void, cb: () => void): boolean;
Parameter | Type | Description |
---|---|---|
this | void | |
cb | () => void |
Returns:
boolean
A boolean value to make linting happy…
_BUILD.DEBUG && _Debug.runBlock(() => {
_Debug.assert(someCondition, "someCondition was wrong");
// ...
});