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

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

Added visualizations

  • Property mode set to 100644
File size: 207 bytes
RevLine 
[a762898]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.