projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgraded drupal core with security updates
[yaffs-website]
/
node_modules
/
underscore.string
/
helper
/
adjacent.js
1
var makeString = require('./makeString');
2
3
module.exports = function adjacent(str, direction) {
4
str = makeString(str);
5
if (str.length === 0) {
6
return '';
7
}
8
return str.slice(0, -1) + String.fromCharCode(str.charCodeAt(str.length - 1) + direction);
9
};