UNPKG

@mj-studio/react-native-naver-map

Version:
16 lines (14 loc) 287 B
class NaverMapJSError extends Error { constructor(message: string) { super(message); this.name = 'NaverMapJSError'; } } export function nAssert( condition: boolean | null | undefined, message: string ) { if (!condition) { throw new NaverMapJSError(message); } }