function words(string, pattern, guard) {
  string = Object(_toString_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(string);
  pattern = guard ? undefined : pattern;

  if (pattern === undefined) {
    return Object(_hasUnicodeWord_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(string) ? Object(_unicodeWords_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(string) : Object(_asciiWords_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(string);
  }
  return string.match(pattern) || [];
}
Used as a reference to the global object.