@plexis/head

0.0.22 • Public • Published

head

Extracts the first length characters from the input text.

npm i @plexis/head

Usage

import head from '@plexis/head';

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

Aliases

import {head} from 'plexis';
import {first} from 'plexis';
import {popFirst} from 'plexis';

Package Sidebar

Install

npm i @plexis/head

Weekly Downloads

3

Version

0.0.22

License

MIT

Unpacked Size

3.99 kB

Total Files

6

Last publish

Collaborators

  • vorillaz