mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 03:45:51 +08:00
Move assert helper to utility
This commit is contained in:
@ -1,10 +1,3 @@
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
console.log(message);
|
||||
throw new Error;
|
||||
}
|
||||
}
|
||||
|
||||
function get_final_bridges(glyph, original_bridges) {
|
||||
var set = {};
|
||||
var result = original_bridges.concat(glyph.manual.bridges_added);
|
||||
|
||||
Reference in New Issue
Block a user