Timeline for Digits in their lanes
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 29, 2018 at 13:54 | history | edited | DanielIndie | CC BY-SA 3.0 |
added 73 characters in body
|
Mar 29, 2018 at 5:51 | comment | added | Yair Rand |
(X+"").match(x) would be even shorter. The question also allows input to be an array of strings, so it could even be X.match(x) .
|
|
Mar 28, 2018 at 7:34 | comment | added | Andrew Taylor |
Pretty sure you can save another by replacing (X+"").includes(x) with RegExp(x).test(X)
|
|
Mar 28, 2018 at 7:34 | comment | added | Andrew Taylor |
Oh, that join trick is lovely — but the question reads like an array of strings is OK output so maybe you can shave 8 bytes by removing it?
|
|
Mar 27, 2018 at 14:27 | history | answered | DanielIndie | CC BY-SA 3.0 |