R/utils.R

Defines functions no_length `%||%`

`%||%` <- function(x, y) if (is.null(x)) y else x

no_length <- function(x) {
  isTRUE(length(x) == 0L)
}
jmbarbone/jordanExtra documentation built on Aug. 4, 2023, 5:37 p.m.