map-string:Array.map的字符串

时间:2021-05-09 02:56:39
【文件属性】:
文件名称:map-string:Array.map的字符串
文件大小:82KB
文件格式:ZIP
更新时间:2021-05-09 02:56:39
JavaScript 地图字串 Array.map用于字符串。 安装 npm install map-string 用法 const mapString = require ( "mapString" ) ; mapString ( "abcd" , ( val ) => { if ( val === "b" ) return "!" return val } ) ; //=> 'a!cd' 原料药 mapString(string,iteratee) 细绳 类型: string 要迭代的字符串。 Iteratee 类型: function(value, index, string) 要使用的iteratee。
【文件预览】:
map-string-master
----.github()
--------FUNDING.yml(753B)
--------CODE_OF_CONDUCT.md(3KB)
--------ISSUE_TEMPLATE()
----yarn.lock(193KB)
----test.js(184B)
----.travis.yml(74B)
----LICENSE(1KB)
----README.md(656B)
----index.d.ts(438B)
----.editorconfig(208B)
----index.js(133B)
----package.json(771B)

网友评论