Exclude NULL elements from a list

nonull(x)

Arguments

x

A list whose NULL elements will be filtered

Note

adapted by https://github.com/rstudio/leaflet/blob/master/R/utils.R

Examples

nonull(NULL)
#> NULL