function getPropertyFromObject(property, node) {
	const properties = node.properties;

	if (!Array.isArray(properties)) {
		return null;
	}

	for (let i = 0; i < properties.length; i++) {
		if (properties[i].key.name === property) {
			return properties[i];
		}
	}

	return null;
}
Gets the property of the Object node passed in that has the name specified.
@param {string} property Name of the property to return.
@param {ASTNode} node The ObjectExpression node.
@returns {ASTNode} The Property node or null if not found.