Javascript Code to Properly Split String by Carriage Returns

Javascript Code to Properly Split String by Carriage Returns Which Works no Matter What the Operating System or Environment Where the Javascript Code is Running

Home Short:

There are a variety of ways taught on how to split a string by carriage return or new line character in Javascript but the line by line split code below works no matter what the environment or operating system the Javascript code is running in.

S
H
A
R
E