ez-array

0.1.0 • Public • Published

ez-array

This module simply provides an array from a given string of either characters or digits.
Return either a string array, number array or a mixed array. Your choice.

Usage

 
$ npm install ez-array
 
var easy = require('ez-array');
String array.
var strArr = easy.words("hello world its good to be here");
console.log(strArr);
// == > [ 'hello', 'world', 'its', 'good', 'to', 'be', 'here' ]
Number array
var numArr = easy.nums("23 235 64 24 12");
console.log(numArr);
// == > [ 23, 235, 64, 24, 12 ]
Mixed Array
var mixArr = easy.mix("hey man 23 453 whats 2 643 up");
console.log(mixArr);
// == > [ 'hey', 'man', 23, 453, 'whats', 2, 643, 'up' ]

Readme

Keywords

Package Sidebar

Install

npm i ez-array

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • markogrady1