Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-10-05 14:46:57 +03:00
parent c3ca91050c
commit 4655bc0230
2 changed files with 3 additions and 3 deletions

View File

@ -92,10 +92,10 @@ module.UniqueKeyMap = object.Constructor('UniqueKeyMap', Map, {
.replace(/\$KEY/, key)
.replace(/\$COUNT/, i) }
return n },
rename: function(from, to){
rename: function(from, to, return_key=false){
var e = this.get(from)
this.delete(from)
return this.set(to, e) },
return this.set(to, e, return_key) },
keysOf: function(elem, mode='original'){
// get unique keys...
if(mode == 'unique'){

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "2.0.2",
"version": "2.0.3",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {