projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c2910ae8e88ce0b25b0322c63898b6234d97fc62
[yaffs-website]
/
map.js
1
var makeString = require('./helper/makeString');
2
3
module.exports = function(str, callback) {
4
str = makeString(str);
5
6
if (str.length === 0 || typeof callback !== 'function') return str;
7
8
return str.replace(/./g, callback);
9
};