Skip to content

Instantly share code, notes, and snippets.

@kalepail
Last active December 3, 2020 17:35
Show Gist options
  • Save kalepail/971165f9ce4149499abc4b00903a162e to your computer and use it in GitHub Desktop.
Save kalepail/971165f9ce4149499abc4b00903a162e to your computer and use it in GitHub Desktop.
/* runkit-eval */
const { sum } = require('lodash')
try {
res.set('Content-Type', 'text/plain')
return JSON.stringify(
sum([5, 5])
)
} catch(err) {
console.error(err)
}
// Useful for retreiving raw code to include in a client side embed: https://runkit.com/docs/embed
const { sum } = require('lodash')
try {
const total = sum([5, 5])
console.log(total)
}
catch(err) {
console.error(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment