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

Commit e2f7974

Browse files
author
Jake Brownson
committed
avoid problem if the map has a key called hasOwnProperty
1 parent 3addff5 commit e2f7974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/StrMap/ST.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports.peekImpl = function (just) {
1212
return function (m) {
1313
return function (k) {
1414
return function () {
15-
return m.hasOwnProperty(k) ? just(m[k]) : nothing;
15+
return {}.hasOwnProperty.call(m, k) ? just(m[k]) : nothing;
1616
};
1717
};
1818
};

0 commit comments

Comments
 (0)