tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-dynamic-import.mjs (369B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 /**
      5 * @param  {number} numbers that will be summed.
      6 * @returns {string} A string of the following form: `${arg1} + ${arg2} ${argn} = ${sum}`
      7 */
      8 function sum(...args) {
      9  return `${args.join(" + ")} = ${args.reduce((acc, i) => acc + i)}`;
     10 }
     11 
     12 export { sum };