Created
October 20, 2015 20:16
-
-
Save scpike/a1c25d759f75dbc9a30a to your computer and use it in GitHub Desktop.
Combine a list of numbers for a big `in ()` statement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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