plexis-js / plexis

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: `insert`

vorillaz opened this issue · comments

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 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.

Can I work on this feature?

@AngelGzS Just go for it

  insert('dg', o); // => 'dgo'

the default value of position it's the lenght of text? right?