string-to-array-convert
v1.2.1
Published
Any string that contains unique identifier to seperate you can make array of this string by using this package
Downloads
8
Maintainers
Readme
Array to String Convertion
Any string that contains unique identifier to seperate you can make array of this string by using this package
Installation
npm i string-to-array-convert
Usage
const { convertToArray } = require('string-to-array-convert')
const string = "JavaScript split method can be used to split number into array. But split method only splits string, so first you need to convert Number to String. Then you can use the split method with a combination of map method to transform each letter to Number.";
const seperator = ' ';
const except = ''; // Optional
const data = convertToArray(seperator, string, except)
console.log(data)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.