code: function isGlobalCallExpression(node, destructuredName, aliases) {
    const isDestructured = node && node.callee && node.callee.name === destructuredName;
    const isGlobalCall = node.callee && aliases.indexOf(node.callee.name) > -1;
  
    return !isDestructured && isGlobalCall;
  }
docs: Check if given call is a global call
  
  This function checks whether given CallExpression node contains global
  function call (name is provided in the aliases array). It also gives option to check against
  already destructrued name and checking aliases.
  
  @param  {CallExpression} node The node to check.
  @param  {String}         destructuredName The desctructured name.
  @param  {String[]}       aliases array of aliases of the global function.
  @return {Boolean}        Whether function is a global call