Function extractWords

  • Extract words from text.

    Parameters

    • value: string

    Returns string[]

    Example

    extractWords('Hello-world!')
    // ['Hello', 'world']