Remove occurrences of duplicate words in a string

前端 未结 9 2000
野性不改
野性不改 2020-11-27 07:37

Take the following string as an example:

var string = \"spanner, span, spaniel, span\";

From this string I would like to find the duplicate

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 08:04

    To delete all duplicate words, I use this code:

    
    

提交回复
热议问题