Extend lines to equal length
$ npm install --save equal-length
.join() and .split() are used only to demo line length
const equalLength = require('equal-length');
equalLength([
'abc',
'a'
].join('\n')).split('\n');
// => [
// 'abc',
// 'a '
// ]
Type: string
Multiline string.
MIT © Vadim Demedes