Skip to main content

contains?

functionv1.7

cljs.core/contains?

Available in:BBCLJCLJS
(contains? [coll v])
Returns true if key is present in the given collection, otherwise returns false. Note that for numerically indexed collections like vectors and arrays, this tests if the numeric key is within the range of indexes. 'contains?' operates constant or logarithmic time; it will not perform a linear search for a value. See also 'some'.

No examples yet. Be the first to add one!