Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 3addff5

Browse files
author
Jake Brownson
committed
use hasOwnProperty instead of ===
1 parent f725df0 commit 3addff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Data/StrMap/ST.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ exports.peekImpl = function (just) {
1212
return function (m) {
1313
return function (k) {
1414
return function () {
15-
var x = m[k];
16-
return x === undefined ? nothing : just(x);
15+
return m.hasOwnProperty(k) ? just(m[k]) : nothing;
1716
};
1817
};
1918
};

0 commit comments

Comments
 (0)