@goongmaps/goong-map-react
Version:
A fork of react-map-gl. React components for Goong JS
9 lines (8 loc) • 316 B
JavaScript
// Replacement for the external assert method to reduce bundle size
// Note: We don't use the second "message" argument in calling code,
// so no need to support it here
export default function assert(condition, message) {
if (!condition) {
throw new Error(message || 'react-map-gl: assertion failed.');
}
}