I have following string:
var myString = " https://image.ibb.co/fShWGd/samhily.jpg
https://image.ibb.co/iDbDUy/ramhily.jpg
https://image.ibb.co/cvbf9y/devoly.jpg "
ANd I would like to get the following array:
var myArray = ["https://image.ibb.co/fShWGd/samhily.jpg","https://image.ibb.co/iDbDUy/ramhily.jpg", "https://image.ibb.co/cvbf9y/devoly.jpg".
Any ideas on how I would do that?
Tried this:
myArray.split(/(\s+)/).filter( function(e) { return e.trim().length > 0; } );
But I get t when I do console.log(myArray[1])
myString?