package
Array.map for strings.
npm install map-stringGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.0 kB
Includes dependencies.
Array.map for strings.
npm install map-stringconst mapString = require("mapString");
mapString("abcd", (val) => {
if (val === "b") return "!"
return val
});
//=> 'a!cd'Type: string
The string to iterate.
Type: function(value, index, string)
The iteratee to use.