Last active
February 22, 2022 13:54
-
-
Save ikasoba/42b068528de58019d8c4947b17105e9d to your computer and use it in GitHub Desktop.
aからbまでの文字列を生成します "a"と"z"を指定したら小文字のアルファベットを出力します。 / Generate a string from a to b. Given "a" and "z", output the lowercase alphabet.
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
const genCharsFromAToB=(a,b)=>Array.from({length:b.charCodeAt(0)-a.charCodeAt(0)+1},(_,i)=>String.fromCharCode(a.charCodeAt(0)+i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment