UNPKG
superhash
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
0.0.4
HashMap that supports using one or more keys of any type.
github.com/esco/superhash
esco/superhash
superhash
/
benchmark
/
keys.js
20 lines
(15 loc)
•
310 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var
object
= {
a
:
'1'
,
b
:
'2'
,
c
:
'3'
,
d
:
'4'
,
e
:
'5'
};
module
.
exports
= {
tests
: {
'keys'
:
function
(
){
Object
.
keys
(
object
).
forEach
(
function
(
){ }); },
'for..in'
:
function
(
) {
for
(
var
key
in
object
) {
if
(
object
.
hasOwnProperty
(key)) { } } } } }