export function toList ( str ) { return str . split ( '' ) ; } export function inherit ( ) { String . prototype . toList = function ( ) : string [ ] { return this . split ( '' ) ; } ; } export default toList ;