`isPlainObject()` util returns `false` for objects without prototypes
See original GitHub issueObject.create(null)
produces a plain object whose prototype is null
. Lodash’s isPlainObject()
correctly treats this as a plain object, but the isPlainObject()
helper introduced in #936 does not. This broke our app, since we have a number of selectors which return prototypeless objects.
PR to follow.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Ways to determine if something is a plain object in JavaScript
Checking if a value is a plain object: /* isPlainObject({}) // true isPlainObject() // false isPlainObject(null) // false ...
Read more >How to use the is-plain-object function in is-plain-object - Snyk
To help you get started, we've selected a few is-plain-object examples, based on popular ways it is used in public projects.
Read more >Use isPlainObject in Playwright Internal With Examples | LambdaTest
Learn how to use isPlainObject function in Playwright Internal framework for your ... return false on object that inherits from object with no...
Read more >Lodash Documentation
The order and references of result values are determined by the first array. Note: Unlike _.pullAll , this method returns a new array....
Read more >JSOC/base/export/webapps/js/jquery-2.1.0.js - view - 1.1
isWindow( obj ) ) { return false; } // Support: Firefox <20 // The try/catch ... toLowerCase() ], // Don't get fooled by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I’ll poke it with a stick tomorrow.
This is also out as 6.0 beta 3: https://github.com/reduxjs/react-redux/releases/tag/v6.0.0-beta.3