is there any function like string.isnullorempty() in javascript December 21, 2023 by Tarik if (thing) { //your code } Is that what you are looking for?