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()!

Written by David

Leave a Comment

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