src/reference-tracker.js
function isModifiedGlobal(variable) {
    return (
        variable == null ||
        variable.defs.length !== 0 ||
        variable.references.some(r => r.isWrite())
    )
}
function isModifiedGlobal(variable) {
    return (
        variable == null ||
        variable.defs.length !== 0 ||
        variable.references.some(r => r.isWrite())
    )
}
Check whether a given variable is modified or not.
@param {Variable} variable The variable to check.
@returns {boolean} `true` if the variable is modified.