Contain

List
Both Server and Client
Both Mobile and PC

Check whether a list contains a specified element

Declaration

func Contain(target List<object>, value object) bool
go

Parameters

Input

Name Type Description
Target List Target List
Value Object The specified element to check

Return

Type Description
Bool Whether it contains the specified element