Skip to content

Commit

Permalink
Fix safe-set README
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-c committed Feb 4, 2023
1 parent 00d518d commit 424c2b2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,6 @@ const obj3 = {a: {aa: {aaa: 2}}};
set(obj3, 'a.aa.aaa', 3); // true
obj3; // {a: {aa: {aaa: 3}}}

// don't clobber existing
const obj4 = {a: {aa: {aaa: 2}}};
set(obj4, 'a.aa', {bbb: 7}); // false

const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
Expand Down
4 changes: 0 additions & 4 deletions md-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -1340,10 +1340,6 @@
"set(obj3, 'a.aa.aaa', 3); // true",
"obj3; // {a: {aa: {aaa: 3}}}",
"",
"// don't clobber existing",
"const obj4 = {a: {aa: {aaa: 2}}};",
"set(obj4, 'a.aa', {bbb: 7}); // false",
"",
"const obj5 = {a: {}};",
"const sym = Symbol();",
"set(obj5.a, sym, 7); // true",
Expand Down
4 changes: 0 additions & 4 deletions packages/object-safe-set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ const obj3 = {a: {aa: {aaa: 2}}};
set(obj3, 'a.aa.aaa', 3); // true
obj3; // {a: {aa: {aaa: 3}}}

// don't clobber existing
const obj4 = {a: {aa: {aaa: 2}}};
set(obj4, 'a.aa', {bbb: 7}); // false

const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
Expand Down
4 changes: 0 additions & 4 deletions packages/object-safe-set/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ module.exports = set;
set(obj3, 'a.aa.aaa', 3); // true
obj3; // {a: {aa: {aaa: 3}}}
// don't clobber existing
var obj4 = {a: {aa: {aaa: 2}}};
set(obj4, 'a.aa', {bbb: 7}); // false
const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
Expand Down
4 changes: 0 additions & 4 deletions packages/object-safe-set/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ var objectSafeSet = set;
set(obj3, 'a.aa.aaa', 3); // true
obj3; // {a: {aa: {aaa: 3}}}
// don't clobber existing
var obj4 = {a: {aa: {aaa: 2}}};
set(obj4, 'a.aa', {bbb: 7}); // false
const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
Expand Down

0 comments on commit 424c2b2

Please sign in to comment.