Lodash _.isPlainObject() Method
The _.isPlainObject() method checks if value is a plain object which means an object created by the Object constructor or one with a [[Prototype]] of null.
Parameters: This method accepts single parameter as mentioned above and described below:
- value: It is the function that is used to check the value.
Return Value: This method returns true if value is a plain object else false.
Example 1: Here, const _ = require(‘lodash’) is used to import the lodash library in the file.