Adds annotations to Mirador 4 implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
279 B

const DEBUG = true;
function toString(obj) {
if (!obj) {
return obj
}
if (typeof obj === 'string') {
return obj
}
return obj + '';
}
function debug(...data) {
if (DEBUG) {
console.debug(...data)
}
}
export {toString, debug};