MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / assert

Function assert

core/src/utils/helpers.ts:288–295  ·  view source on GitHub ↗
(actual: any, reason: string)

Source from the content-addressed store, hash-verified

286};
287
288export const assert = (actual: any, reason: string) => {
289 if (!actual) {
290 const message = 'ASSERT: ' + reason;
291 printIonError(message);
292 debugger; // eslint-disable-line
293 throw new Error(message);
294 }
295};
296
297export const now = (ev: UIEvent) => {
298 return ev.timeStamp || Date.now();

Callers 9

onStartMethod · 0.90
onMoveMethod · 0.90
onEndMethod · 0.90
beforeAnimationMethod · 0.90
prepareTIMethod · 0.90
postViewInitMethod · 0.90
insertViewAtMethod · 0.90
removeViewMethod · 0.90
_destroyMethod · 0.90

Calls 1

printIonErrorFunction · 0.90

Tested by

no test coverage detected