“||”.split(“\\|”).length return 零 and 3

“||”.split(“\\|”).length return 0 and 3
“||”.split(“\\|”)
[]


“||”.split(“\\|”,-1)
["","",""]