array-slice
array-slice copied to clipboard
I think pos == nulll logic is not rigorous enough
In the pos == null decision, I think the better way is to use === instead of ==. Second, the value of pos may also be undefined. When ==, null == undefined is true, but=== is more rigorous, because null and undefined are two different values themselves, so === can be judged as two Different values, so I mentioned such a modification.