plexis-js / plexis

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: `head / popFirst`

vorillaz opened this issue · comments

Extracts the first length characters from the input text.

  head(); // => ''
  head('Hello'); // => 'H'
  head('Hello', 2); // => 'He'
  head('Hello', 100); // => 'Hello'

Aliases

import head from '@plexis/head';
import {head, first, popFirst} from 'plexis';

Can I take this one?