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 Sept. 5, 2024, 12:33 p.m.