stringorarraytoarray
v1.0.1
Published
Convert a String or an Array to an Array
Downloads
4
Maintainers
Readme
stringOrArrayToArray
Convert a String or an Array to an Array
Install
$ npm install --save stringOrArrayToArray
Usage
const toArray = require('stringOrArrayToArray');
toArray('unicorns');
//=> ['unicorns']
toArray(['unicorns', 'rainbows']);
//=> ['unicorns', 'rainbows']
API
stringOrArrayToArray(input)
input
Type: string
, array
Contribute
PRs accepted. Check out the issues!