string-prepend.js:独角兽 String.prototype.prepend 作为柯里化函数

时间:2021-06-19 12:28:10
【文件属性】:
文件名称:string-prepend.js:独角兽 String.prototype.prepend 作为柯里化函数
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-19 12:28:10
JavaScript 字符串前置 独角兽 String.prototype.prepend 作为柯里化函数。 $ npm install string-prepend --save API 示例和灵感 要求 var prepend = require('./'); 相当于 str1 + str2 prepend("http://", "example.com"); //=> http://example.com 网址建设 var paramName = prepend('http://'); var interests = ["example.com", "google.com", "yahoo.com"]; interests.map(paramName); //=> [ 'http://example.com', 'http://google.com', 'http://yahoo.com'
【文件预览】:
string-prepend.js-master
----.gitignore(44B)
----.eslintrc(36B)
----package.json(913B)
----.travis.yml(38B)
----index.js(459B)
----test.js(803B)
----license(1KB)
----readme.md(1KB)
----.editorconfig(765B)

网友评论