function isVarDestructuring(variable) {
	const defNode =
		variable &&
		variable.defs &&
		( getFuncArgumentDestructNode(variable.defs[0]) // (arrow) function argument
		|| variable.defs[0].node.id ); // variable definition

	return defNode != null && [Syntax.ObjectPattern, Syntax.ArrayPattern].includes( defNode.type );
}
Checks whether a variable has been destructured.

@param {Variable} variable
@returns {boolean} whether `variable` uses destructuring.