R/detect.R
has_element.Rd
Does a list contain an object?
has_element(.x, .y)
A list or atomic vector.
Object to test for
x <- list(1:10, 5, 9.9) x %>% has_element(1:10)#> [1] TRUEx %>% has_element(3)#> [1] FALSE