1.0.0 • Published 8 years ago

v-trimleftbychar v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

trim-left-by-char

Trim a string from the left removing it of provided character.

Install

$ npm install --save trim-left-by-char

Usage

const trimLeftByChar = require('trim-left-by-char');

trimLeftByChar('00unicorns', 0);
//=> 'unicorns'

API

trimLeftByChar(input, char)

input

Type: string

Input string that you want to trim of characters.

char

Type: string Default: ''

Character you want to trim from string.

License

MIT © Vedran Blazenka