question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`isPlainObject()` util returns `false` for objects without prototypes

See original GitHub issue

Object.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:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
timdorrcommented, Nov 8, 2018

Yeah, I’ll poke it with a stick tomorrow.

0reactions
timdorrcommented, Nov 23, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found