Skip to main content

Try this:

export const isEmpty = string => (!string || !string.length === 0);

Try this:

export const isEmpty = string => (!string || string.length === 0);

Try this:

export const isEmpty = string => (!string || !string.length);
Source Link
oviniciusfeitosa
  • 1.1k
  • 1
  • 12
  • 13

Try this:

export const isEmpty = string => (!string || string.length === 0);