<file_sep>const reverseWords = (str: String) =>
  str
    .split(" ")
    .reduce((revStr: Array<String>, word: String) => [word, ...revStr], [])
    .join(" ");
export default reverseWords;
<file_sep>import reverseWords from "./mod.ts";

console.log(reverseWords("This is fun"));
