array-slice icon indicating copy to clipboard operation
array-slice copied to clipboard

I think pos == nulll logic is not rigorous enough

Open jweboy opened this issue 7 years ago • 0 comments

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.

jweboy avatar Apr 05 '18 02:04 jweboy