UNPKG

282 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.renamenx = renamenx;
7
8var _index = require('./index');
9
10function renamenx(key, newKey) {
11 if (this.data.has(newKey)) {
12 return 0;
13 }
14
15 _index.rename.call(this, key, newKey);
16
17 return 1;
18}
\No newline at end of file