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 April 13, 2025, 3:28 a.m.