Feature: `insert`
vorillaz opened this issue · comments
Theodore Vorillas commented
Inserts into the input text a string at specified position.
insert(); // => ''
insert('dg'); // => 'dg'
insert('dg', o); // => 'dgo'
insert('dg', o, 1); // => 'dog'
insert('dg', o, 100); // => 'dgo'
insert('dg', o, -100); // => 'dgo'
insert('dg', o, 0); // => 'odg'
Aliases
import insert from '@plexis/insert';
import {insert} from 'plexis';
issue-label-bot commented
Issue-Label Bot is automatically applying the label feature_request
to this issue, with a confidence of 0.82. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Angel Gonzalez commented
Can I work on this feature?
Theodore Vorillas commented
@AngelGzS Just go for it
Angel Gonzalez commented
insert('dg', o); // => 'dgo'
the default value of position it's the lenght of text? right?