<commit_before>---
title: isPlainObject
layout: post
---

## Description

isPlainObject is a function to check wether a val is a plain object.

## Syntax

> invincible.isPlainObject(val)

#### Params

Name | Type | Default | Description
--- | --- | --- | ---
val | Any | | The source value to check

#### Return

Type | Description
--- | ---
Boolean | Wether the value is a plain object

## Examples

``` js
invincible.isPlainObject({key: 'value'})
invincible.isPlainObject([1, 2, 3])
```<commit_msg>docs: add expamples result<commit_after>---
title: isPlainObject
layout: post
---

## Description

isPlainObject is a function to check wether a val is a plain object.

## Syntax

> invincible.isPlainObject(val)

#### Params

Name | Type | Default | Description
--- | --- | --- | ---
val | Any | | The source value to check

#### Return

Type | Description
--- | ---
Boolean | Wether the value is a plain object

## Examples

``` js
invincible.isPlainObject({key: 'value'}) // true
invincible.isPlainObject([1, 2, 3]) // false
invincible.isPlainObject(new Test()) // false
```
{'fraction_non_alphanumeric': 0.16171003717472118, 'fraction_numerical': 0.0055762081784386614, 'mean_word_length': 3.325301204819277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '796768', 'n_tokens_mistral': 361, 'n_tokens_neox': 352, 'n_words': 110}