https://leetcode.com/problems/truncate-sentence/


Runtime: 64 ms, faster than 89.29% of TypeScript online submissions for Truncate Sentence.

Memory Usage: 43.7 MB, less than 71.43% of TypeScript online submissions for Truncate Sentence.


```typescript
function truncateSentence(s: string, k: number): string {
    //5:01
    let word_list = s.split(" ")
    return word_list.slice(0, k).join(" ")
    //5:01
};
```
