mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-03 13:59:09 +08:00
Move assert helper to utility
This commit is contained in:
6
lib/assert.js
Normal file
6
lib/assert.js
Normal file
@ -0,0 +1,6 @@
|
||||
this.assert = function(condition, message) {
|
||||
if (!condition) {
|
||||
console.error(message);
|
||||
throw new Error;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user