if (typeof add === 'function') {
console.log('add function is defined');
} else {
console.log('add function is not defined');
}
function toHexArray(arr : any) {
}
if (typeof toHexArray === 'function') {
console.log('toHexArray function is defined');
} else {
console.log('toHexArray function is not defined');
}
/*
run:
"add function is not defined"
"toHexArray function is defined"
*/