source:
node_modules/reselect/src/autotrackMemoize/utils.ts
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 167 bytes |
Line | |
---|---|
1 | export function assert( |
2 | condition: any, |
3 | msg = 'Assertion failed!' |
4 | ): asserts condition { |
5 | if (!condition) { |
6 | console.error(msg) |
7 | throw new Error(msg) |
8 | } |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.