R/utils_is.R

Defines functions is_not_null is_not_blank is_blank

Documented in is_not_blank is_not_null

#' Is blank
#'
#' @description A utils function
#'
#' @return The return value, if any, from executing the utility.
#'
#' @noRd
#' @param x vector of any class
is_blank <- function(x) {
  
  x == ""
  
}

#' Is not blank
#' @param x vector of any class
#' 
is_not_blank <- function(x) {
  
  x != ""
  
}

#' Is not null
#' @param x vector of any class
#' 
is_not_null <- function(x) {
  
  !is.null(x)
  
}
kristian-bak/shinyStocks documentation built on Aug. 16, 2022, 4:15 a.m.