Skip to content

Instantly share code, notes, and snippets.

@scpike
Created October 20, 2015 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scpike/a1c25d759f75dbc9a30a to your computer and use it in GitHub Desktop.
Save scpike/a1c25d759f75dbc9a30a to your computer and use it in GitHub Desktop.
Combine a list of numbers for a big `in ()` statement
(function(x) {
if (x.length > 0) {
return "(" + x.split("\n").join(',') + ")"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment