Skip to main content

isStringEmpty

Checks if given string is empty or not.

  • import the method
import { isStringEmpty } from "nodelpers";
  • params
str: string;
  • usage
isStringEmpty(""); // true
isStringEmpty(" "); // true
isStringEmpty(" kite"); // false