Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit dba33cc

Browse files
Added toArray() method to get a real array from a result set
1 parent c8d8a88 commit dba33cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LocalStorageDB.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ License: MIT License (see homepage)
103103
}
104104
return this.splice( start, end );
105105
};
106+
RESULT_SET.prototype.toArray = function()
107+
{
108+
var arr = this;
109+
return Array.prototype.slice.call(arr);
110+
};
106111

107112

108113
// for Firefox when users manually disable localStorage

0 commit comments

Comments
 (0)