I use lodash
, but I would like to split string by digit.
data = "123456";
I can split by 2 digits
=> ["12", "34", "56" ]
Please help me.
I use lodash
, but I would like to split string by digit.
data = "123456";
I can split by 2 digits
=> ["12", "34", "56" ]
Please help me.
Look great from lodash issue
data.match(/\d{2}/g)