Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • jQuery Tutorial
  • jQuery Selectors
  • jQuery Events
  • jQuery Effects
  • jQuery Traversing
  • jQuery HTML & CSS
  • jQuery AJAX
  • jQuery Properties
  • jQuery Examples
  • jQuery Interview Questions
  • jQuery Plugins
  • jQuery Cheat Sheet
  • jQuery UI
  • jQuery Mobile
  • jQWidgets
  • Easy UI
  • Web Technology
Open In App
Next Article:
JQuery | isPlainObject() Method
Next article icon

JQuery | isPlainObject() Method

Last Updated : 30 Apr, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
This isPlainObject() Method in jQuery is used to check to see if an object is a plain object. Syntax:
jQuery.isPlainObject( obj )
Parameters: This method accept a single parameter that is mentioned above and described below:
  • obj: This parameter holds the object that will be checked to see if it's a plain object.
Return Value: It returns the boolean value. Below examples illustrate the use of isPlainObject() method in jQuery: Example 1: In this example, the isPlainObject() method checks an object to see if it's a plain object. html
<!DOCTYPE html> <html>  <head>     <meta charset="utf-8">     <title>JQuery | isPlainObject() method</title>     <script src= "https://code.jquery.com/jquery-3.4.1.js">     </script>  </head>  <body style="text-align:center;">      <h1 style="color: green">          GeeksforGeeks      </h1>      <h3>JQuery | isPlainObject() method</h3>     <b>Whether '{}' is a Plain Object : </b>     <p></p>      <script>         $("p").append("" + $.isPlainObject({}));     </script> </body>  </html> 
Output: Example 2: In this example, the isPlainObject() method also checks an object to see if it's a plain object. html
<!DOCTYPE html> <html>  <head>     <meta charset="utf-8">     <title>JQuery | isPlainObject() method</title>     <script src= "https://code.jquery.com/jquery-3.4.1.js">     </script>  </head>  <body style="text-align:center;">      <h1 style="color: green">          GeeksforGeeks      </h1>      <h3>JQuery | isPlainObject() method</h3>     <p id="geek1">       Whether 'document.location' is a Plain Object:      </p>     <p id="geek2">Whether String is a Plain Object:      </p>     <script>                // Document.location         $("#geek1").append("" + $.isPlainObject(document.location));                // string = "Shubham_Singh"         $("#geek2").append("" + $.isPlainObject("Shubham_Singh"));     </script> </body>  </html>                                       
Output:

Next Article
JQuery | isPlainObject() Method

S

SHUBHAMSINGH10
Improve
Article Tags :
  • Web Technologies
  • JQuery
  • jQuery-Methods

Similar Reads

    JQuery | isEmptyObject() method
    This isEmptyObject() Method in jQuery is used to determines if an object is empty. Syntax: jQuery.isEmptyObject( object ) Parameters: The isEmptyObject() method accepts only one parameter that is mentioned above and described below: object : This parameter is the object that will be checked to see i
    2 min read
    Lodash _.isPlainObject() Method
    Lodash _.isPlainObject() method checks if the value is a plain object which means an object created by the Object constructor or one with a [[Prototype]] of null. Syntax:_.isPlainObject(value);Parameters: This method accepts a single parameter as mentioned above and described below: value: It is the
    2 min read
    JQuery | isWindow() Method
    This isWindow() Method in jQuery is used to determine whether the argument is a window. Syntax: jQuery.isWindow( obj ) Parameters: This method accept a single parameter which is mentioned above and described below: obj: This parameter holds the object to test whether or not it is a window. Return Va
    1 min read
    JQuery | isFunction() method
    This isFunction() Method in jQuery is used to determines if its argument is callable as a function. Syntax: jQuery.isFunction( value ) Parameters: The isFunction() method accepts only one parameter that is mentioned above and described below: value : This parameter is the value to be tested. Return
    2 min read
    jQuery is() Method
    The is() method is used to check if one of the selected elements matches the selectorElement Syntax: $(selector).is(selectorElement, function(index, element))Parameters: This method accepts parameters above mentioned and below described:- selector: It is an optional parameter. It specifies the selec
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences