map-char
v1.0.5
Published
The mapChar() function iterates over each character of the string and executes the provided callback function for each one.
Downloads
2
Readme
mapChar
Description
The mapChar() function iterates over each character of the string and executes the provided callback function for each one.
Install
npm i map-char
Import
require('map-char');
Usage
const str = 'test'
str.mapChar((char, i) => {
console.log(char, i);
})