js check if function is available in scope code example
Example: js check if function is available in scope
if (typeof me.onChange === "function") {
// safe to use the function
}
if (typeof me.onChange === "function") {
// safe to use the function
}