What is the shortest way to check a LONG written function for a valid output first (not null), and then to use it several times

后端 未结 0 777
温柔的废话
温柔的废话 2021-02-12 11:54

Using vanilla js, I\'ve put together a one liner that takes a long function, first checks to see if it has a valid value (not null), and if it has a valid value to use that long

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