Best way to test if a string is empty then return undefined or else return another string

后端 未结 0 516
猫巷女王i
猫巷女王i 2021-01-25 23:14

I need to test if a string is empty and if it is then return a different string. Otherwise if the tested string is empty or undefined then return undefined.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题