Skip to content

Commit

Permalink
Correct isPlainObject()
Browse files Browse the repository at this point in the history
Removed unintended code from `isPlainObject`.

See comment #384 (review).
  • Loading branch information
danielsharvey authored Nov 13, 2023
1 parent 57bfcef commit cefa700
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2290,11 +2290,7 @@ Checks if value is a plain object, that is, an object created by the Object cons
typeof Ctor === 'function' &&
Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value)
);

var result = invert(object);
console.log(result)
// output: true
}
}
```

#### Browser Support for `Object.getPrototypeOf()`
Expand Down

0 comments on commit cefa700

Please sign in to comment.