23 ms·
JS & python both have: '//'.split('/') => [ '', '', '' ] '/'.split('/') => [ '', '' ] '',split('/') => [ '' ] so they indeed produce what parent expected.
by ithkuil 7y ago
JS & python both have:
'//'.split('/') => [ '', '', '' ]
'/'.split('/') => [ '', '' ]
'',split('/') => [ '' ]
so they indeed produce what parent expected.