sta
: Parse tokens from an string into an array
sta extract the words from a string, and store those words in an array. The words are separated by an space/s.
pip install sta
import sta
print(sta('this string is divided by spaces'))
# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]
Return an array with each token
Return Type: list
- str-to-arr: convert an string into an array in JavaScript.
- s-to-o: convert an string into an object in JavaScript.
Carlos Abraham |
MIT License © Carlos Abraham