@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Function words

    • Split string into as words array

      将字符串拆分为单词数组

      Parameters

      • str: string

        the string to split 要拆分的字符串

      Returns string[]

      an array of words 单词数组

      words('helloWorld🚀') // => ['hello', 'world', '🚀']