source: node_modules/es-toolkit/dist/util/invariant.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 207 bytes
Line 
1function invariant(condition, message) {
2 if (condition) {
3 return;
4 }
5 if (typeof message === 'string') {
6 throw new Error(message);
7 }
8 throw message;
9}
10
11export { invariant };
Note: See TracBrowser for help on using the repository browser.