Skip to content

Instantly share code, notes, and snippets.

@ikasoba
Last active February 22, 2022 13:54
Show Gist options
  • Save ikasoba/42b068528de58019d8c4947b17105e9d to your computer and use it in GitHub Desktop.
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.
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