Beginner at javascript/coding
I need to split a string every time the enter key is pressed and store them in an array
I-0000-DV-301-0003
I-0000-DV-301-0002
I-0000-DV-301-0001
output:
array[0] = I-0000-DV-301-0003
array[1]=I-0000-DV-301-0002
...
I've tried string.split but i'm not sure how to use it with the 'enter' or 'return' key.
Thank you!