Code Snippet
function make_ranged_array(start, length){
return [...Array(length)].map((_, i) => {
return start + i
})
}
function get_hiragana (remove_charset_code) {
return make_ranged_array(12354, 82)
.filter((value, index) => {
return !charset_small.includes(value)
})
.map((value, index) => {
return {index: index, code: value, value: String.fromCharCode(value)};
})
}
charset_small = [12355, 12357, 12359, 12361,12387, 12419, 12421, 12423]
const hiragana = get_hiragana(charset_small)
console.log(hiragana, hiragana.length)