I am trying to split the numbers including '-' values. but getting different values.
const arr = '2345-10'.split('');;
console.log(arr);
result : ['2', '3', '4', '5', '-', '1', '0']
But expecting a result like this:
['2', '3', '4', '5', '-1', '0']