Answers for "how to itentify if an input element hust contains white spaces and not to consider it"

0

how to itentify if an input element hust contains white spaces and not to consider it

if (!/\S/.test(str)) {
  // Didn't find something other than a space which means it's empty
}
Posted by: Guest on February-24-2022

Code answers related to "how to itentify if an input element hust contains white spaces and not to consider it"

Browse Popular Code Answers by Language