# asciiToArray

# Description

将ASCII string 转换为数组

# Params

{String} string

# Return

Array

# Code

function asciiToArray(string) {
  return string.split('')
}

# Analyze

也就是将字符串分割为数组,对于 lodash 来说,不是 Unicodestring 那就是 ascii

# Remark

  1. ASCII on Wikipedia (opens new window)
  2. split MDN (opens new window)

# Example

asciiToArray('1234') // [ '1', '2', '3', '4' ]
asciiToArray('qwer') // [ 'q', 'w', 'e', 'r' ]