function isWriteReference(reference) {
	if (reference.init) {
		const def = reference.resolved && reference.resolved.defs[0];

		if (!def || def.type !== "Variable" || def.parent.kind !== "var") {
			return false;
		}
	}
	return reference.isWrite();
}
Checks whether or not a given reference is a write reference.
@param {eslint-scope.Reference} reference A reference to check.
@returns {boolean} `true` if the reference is a write reference.