mirror of
https://github.com/weloe/token-go.git
synced 2025-10-05 15:36:50 +08:00
11 lines
137 B
Go
11 lines
137 B
Go
package util
|
|
|
|
func HasNil(arr []interface{}) bool {
|
|
for _, elem := range arr {
|
|
if elem == nil {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|