From cefa700c1d2b4cb2e3004e385435c70c1c959a0c Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Mon, 13 Nov 2023 17:36:23 +0800 Subject: [PATCH] Correct isPlainObject() Removed unintended code from `isPlainObject`. See comment https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/384#pullrequestreview-1726609882. --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index c8c3d14..bfacc3f 100644 --- a/README.md +++ b/README.md @@ -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()`