lib/index.js
function smartquotes(context) {
  if (typeof document !== 'undefined' && typeof context === 'undefined') {
    listen.runOnReady(() => element(document.body));
    return smartquotes;
  } else if (typeof context === 'string') {
    return string(context);
  } else {
    return element(context);
  }
}
function smartquotes(context) {
  if (typeof document !== 'undefined' && typeof context === 'undefined') {
    listen.runOnReady(() => element(document.body));
    return smartquotes;
  } else if (typeof context === 'string') {
    return string(context);
  } else {
    return element(context);
  }
}
function smartquotes ( context ) { if ( typeof document !== 'undefined' && typeof context === 'undefined' ) { listen . runOnReady ( ( ) => element ( document . body ) ) ; return smartquotes ; } else if ( typeof context === 'string' ) { return string ( context ) ; } else { return element ( context ) ; } }
The smartquotes function should just delegate to the other functions
The smartquotes function should just delegate to the other functions