mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-24 01:15:25 +01:00
get keys methods
This commit is contained in:
parent
a9f0f1aec4
commit
56d9c8ab48
1 changed files with 8 additions and 0 deletions
|
|
@ -69,6 +69,14 @@ TCAD.struct.HashTable.prototype.rebuild = function() {
|
|||
}
|
||||
};
|
||||
|
||||
TCAD.struct.HashTable.prototype.getKeys = function() {
|
||||
var keys = [];
|
||||
this.entries(function(k) {
|
||||
keys.push(k)
|
||||
});
|
||||
return keys;
|
||||
};
|
||||
|
||||
TCAD.struct.HashTable.prototype.entries = function(callback) {
|
||||
for (var i = 0; i < this.table.length; i++) {
|
||||
var e = this.table[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue