Javascript String isNullOrWhiteSpace(input)

Description

Javascript String isNullOrWhiteSpace(input)


String.isNullOrWhiteSpace = function (input) {
  return typeof input !== 'string' || input.replace(/\s+/g, '').length === 0;
};



PreviousNext

Related