plexis-js / plexis

Lo-fi, powerful, community-driven string manipulation library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: `padRight/ rpad` #113

AngelGzS opened this issue · comments

Pads the input text from right to a new length.

padRight ('Foo Bar', 1); // => 'Foo Bar'
padRight ('Foo Bar', 8); // => 'Foo Bar '
padRight ('Foo Bar', 8, '*'); // => 'Foo Bar*'
padRight ('Foo Bar', 10, '*'); // => 'Foo Bar***'
padRight ('Foo Bar', 10, '123'); // => 'Foo Bar123'
padRight ('Foo Bar', 9, '123'); // => 'Foo Bar12'

Aliases

import padRight from '@plexis/pad-right';
import {padRight, rpad} from 'plexis';

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Can I take this issue?

Can I take this issue?

Sure

Is it safe for me to assume that I could work on this one? 7flash said they would take it 7 months ago .

Yes you can take it.