We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb64eab commit b57c08cCopy full SHA for b57c08c
1 file changed
js/Object.js
@@ -22,7 +22,7 @@ anObject = {
22
anObject["key"] = "value";
23
24
// assign multiple
25
-Object.assing(anObject, {
+Object.assign(anObject, {
26
"key1": "value1",
27
"key2": "value2"
28
});
@@ -55,6 +55,7 @@ Object.entries(anObject).forEach(function ([key, value]) {
55
anObject.hasOwnProperty("key");
56
57
// has safe, works even when anObject has a key "hasOwnProperty"
58
+// alsow works for Objects without prototype
59
Object.prototype.hasOwnProperty.call(anObject, "key");
60
61
// remove a value
0 commit comments