Last active
July 5, 2020 00:05
-
-
Save ara-ta3/ebe35eaef766f1ecacc63a3c8473ba61 to your computer and use it in GitHub Desktop.
JavaScriptワンライナーまとめスレ
This file contains 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
((code) => [code.replace("#", "")].flatMap((s) => [s[0] + s[1], s[2] + s[3], s[4] + s[5]]).map((c) => parseInt(c, 16)))("#ffffff") | |
// prettier | |
((code) => | |
[code.replace("#", "")] | |
.flatMap((s) => [s[0] + s[1], s[2] + s[3], s[4] + s[5]]) | |
.map((c) => parseInt(c, 16)))("#ffffff"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment