Open Osuka42g opened 5 years ago
0 will cast as false in a comparison statement. This will check if the provided prop is a number, so it will accept 0 as defaultIndex.
0
false
0
will cast asfalse
in a comparison statement. This will check if the provided prop is a number, so it will accept 0 as defaultIndex.