Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 192 Bytes

.verb.md

File metadata and controls

11 lines (9 loc) · 192 Bytes

Usage

var rename = require('{%= name %}');

var obj = rename({a: {a: {a: 'b'}}}, function(key) {
  if (key === 'a') return 'zzz';
  return key;
});
//=> {zzz: {zzz: {zzz: 'b'}}}