Gazebo_simulation-Frontend/node_modules/tiny-invariant/dist/tiny-invariant.js
2020-12-21 10:29:31 -05:00

21 lines
504 B
JavaScript

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.invariant = factory());
}(this, function () { 'use strict';
var prefix = 'Invariant failed';
function invariant(condition, message) {
if (condition) {
return;
}
{
throw new Error(prefix + ": " + (message || ''));
}
}
return invariant;
}));