mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 23:22:41 +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
|
|
}
|