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

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

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

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

    return null;
}
function getPropertyFromObject ( property , node ) { const properties = node . properties ; for ( let i = 0 ; i < properties . length ; i ++ ) { if ( properties [ i ] . key . name === property ) { return properties [ i ] ; } } return null ; }
------------------------------------------------------------------------------ Helpers ------------------------------------------------------------------------------ 
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.
------------------------------------------------------------------------------ Helpers ------------------------------------------------------------------------------ Gets the property of the Object node passed in that has the name specified .
Get a property from a node