升级数组操作

This commit is contained in:
2024-05-06 14:56:35 +08:00
parent 9ae0c8f4be
commit 3caad964bc
5 changed files with 47 additions and 252 deletions

18
array_test.go Normal file
View File

@ -0,0 +1,18 @@
// Package wrapper ...
//
// Description : wrapper ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2024-05-06 下午2:48
package wrapper
import (
"fmt"
"testing"
)
func TestArray_Unique(t *testing.T) {
fmt.Println(ArrayType([]any{"1", 1, 1, "1", 2, 3}).Unique().Value)
fmt.Println(ArrayType([]int{1, 1, 2, 3}).Unique().Value)
}