@joegesualdo/is-empty-line
v0.0.1
Published
Detect if a line is empty.
Downloads
4
Readme
is-empty-line
Detect if a line is empty.
Install
$ npm install --save @joegesualdo/is-empty-line
Usage
import isEmptyLine from ('@joegesualdo/is-empty-line')
isEmptyLine('\n ');
// => true
isEmptyLine(' ');
// => true
isEmptyLine('x');
// => false
Test
$ npm test
API
isEmptyLine(str)
| Name | Type | Required | Default | Description |
|-----------|----------|----------|---------|---------------------------------------- |
| str | String
| yes
| N/A
| The string you want to test |
import isEmptyLine from ('@joegesualdo/is-empty-line')
isEmptyLine('\n ');
// => true
isEmptyLine(' ');
// => true
isEmptyLine('x');
// => false
Build
$ npm run build
License
MIT © Joe Gesualdo