import { charCodeAtZero } from '../../../../deps'
import { fromStringToArray } from '../../../array/cast/fromStringToArray'
import { toString } from '../../string/toString'
/**
* @todo add enum for the number (charcode types?)
* @param x string for charcodes
*/
function fromStringToCharCodes(x: string): number[] {
return fromStringToArray(toString(x)).map(charCodeAtZero)
}
export { fromStringToCharCodes }
export default fromStringToCharCodes