angularjs 1 req.body split is not a function issue

angularjs 1 req.body split is not a function error

This because before to ‘split’ you have to Cast to String like that:

req.body.[entry].toString().split(',')

So Use toString() Before split()!

Leave a Reply

Your email address will not be published. Required fields are marked *