score:4

Accepted answer
string.trim().split('\n').map(s => s.trim())

Related Query

More Query from same tag