mirror of
https://github.com/flynx/types.js.git
synced 2025-12-20 02:11:39 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c3ca91050c
commit
4655bc0230
@ -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'){
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user