LoginSignup
4
3

More than 3 years have passed since last update.

_.isEmptyの返却値まとめ

Posted at

_.isEmptyの返却値まとめ

検証

  • lodashの isEmpty 関数に何を入れると何が返却されるかをまとめました。
  • 足りてないと思った方は追記してください。

検証version

検証結果

  _.isEmpty(n)
引数(n) 戻り値
なし true
undefined true
null true
'' true
"" true
`` true
0 true
1 true
false true
true true
[] true
[1] false
[,] false
{} true
{a:{}} false
() => {} true
new String() true
new Date() true
new Boolean() true
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3