Sha256: 85208b8a8379d8806c0635bb7b23f5d92a6962bc6b533d8aad91d8f58da5aa63
Contents?: true
Size: 262 Bytes
Versions: 19
Compression:
Stored size: 262 Bytes
Contents
var makeString = require('./makeString'); module.exports = function adjacent(str, direction) { str = makeString(str); if (str.length === 0) { return ''; } return str.slice(0, -1) + String.fromCharCode(str.charCodeAt(str.length - 1) + direction); };
Version data entries
19 entries across 19 versions & 1 rubygems