1.0.2 • Published 5 years ago

parse-str-numarr v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

parse-str-to-numarr

1) Converts an array of numbers(in String) to number (eg. convertStrToArrNum('1','2,'text') => 1,2,'text') 2) Converts a string which we split with given value where the string in digits are converted to digits (eg. convertStrToArrNum('9 23 3 52 da2 2sd 10', ' ') => 9,23,3,52,'da2','2sd',10) --which splits the array by space(' ') and also converts the Number(In string) to Number

Installation

Install via NPM:

npm install parse-str-to-numarr

Usage

javascript

var myApp = require("parse-str-to-numarr");

myApp.convertstrtoarrnum(); // print and return Array of Numbers"  

TypeScript

import * as myApp from 'parse-str-to-numarr';

myApp.convertstrtoarrnum(); // print and return Array of Numbers" 

License

This project is licensed under the terms of the MIT license.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago