function open(
  url,
  {
    // custom function for opening in same window
    openInSameWindow = url => clickLink(url, false),
    // custom function for opening in new window
    openInBlankWindow = url => clickLink(url, true),
    ...options
  } = {},
) {
  if (shouldOpenInBlankWindow(url, options)) {
    openInBlankWindow(url);
  } else {
    openInSameWindow(url);
  }
}
/**
 * helper for opening links in same or different window depending on origin and
 * meta key state
 */
helper for opening links in same or different window depending on origin and
meta key state
helper for opening links in same or different window depending on origin and meta key state
function open(
  url,
  {
    openInSameWindow = url => clickLink(url, false),
    openInBlankWindow = url => clickLink(url, true),
    ...options
  } = {},
) {
  if (shouldOpenInBlankWindow(url, options)) {
    openInBlankWindow(url);
  } else {
    openInSameWindow(url);
  }
}
function open ( url , { openInSameWindow = url => clickLink ( url , false ) , openInBlankWindow = url => clickLink ( url , true ) , ... options } = { } , ) { if ( shouldOpenInBlankWindow ( url , options ) ) { openInBlankWindow ( url ) ; } else { openInSameWindow ( url ) ; } }
helper for opening links in same or different window depending on origin and
 meta key state
helper for opening links in same or different window depending on origin and meta key state
// custom function for opening in same window // custom function for opening in new window