@plexis/starts-with

0.0.22 • Public • Published

@plexis/startsWith

Checks whether the input text starts with the given pattern.

npm i @plexis/starts-with

Usage

import startsWith from '@plexis/starts-with';

startsWith('This is me', 'This is'); // returns true
startsWith('This is me', 'This is', 1); // returns false
startsWith(/[@!#$]/, '@plexis is great!'); // returns true
startsWith(/[A-Z]/, '@plexis is great!'); // returns false

Package Sidebar

Install

npm i @plexis/starts-with

Weekly Downloads

11

Version

0.0.22

License

MIT

Unpacked Size

4.32 kB

Total Files

6

Last publish

Collaborators

  • vorillaz