regular expression search for empty value, including spaces and tabs /^s*$/ . Regular expressions do not exclusively use "*", this is the number of matches from 0 to infinity.
console.log(/^s*$/.test(""));
console.log(/^s*$/.test(" "));
console.log(/^s*$/.test("*"));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…