Skip to content
Merged

Dev #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Changelog

### [v2.3.3](https://github.com/panates/jsopen-objects/compare/v2.3.2...v2.3.3) -
### [v2.3.4](https://github.com/panates/jsopen-objects/compare/v2.3.3...v2.3.4) -

#### 📖 Documentation Changes
#### 🛠 Refactoring and Updates

- docs: add TSDoc to every exported function @Eray Hanoğlu
- refactor: refine `isPlainObject` to improve type safety with `Record<string, any>` @Eray Hanoğlu
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jsopen/objects",
"description": "Helper utilities for working with JavaScript objects and arrays",
"version": "2.3.3",
"version": "2.3.4",
"author": "Panates",
"license": "MIT",
"private": true,
Expand Down Expand Up @@ -60,7 +60,10 @@
"./package.json": "./package.json"
},
"contributors": [
"Eray Hanoglu <e.hanoglu@panates.com>"
"Eray Hanoglu <e.hanoglu@panates.com>",
"Ilker Gurelli <i.gurelli@panates.com>",
"Onur Tokel <o.tokel@panates.com>",
"Bircan Yuruk <b.yuruk@panates.com>"
],
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/is-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function isObject(v: any): boolean {
* isPlainObject(new (class {})()); // false
* isPlainObject([]); // false
*/
export function isPlainObject(obj: any): boolean {
export function isPlainObject(obj: any): obj is Record<string, any> {
if (
obj &&
typeof obj === 'object' &&
Expand Down
Loading