@ocyrusjs/is-plain-object
v1.0.0
Published
High-performance check for plain objects.
Maintainers
Readme
@ocyrusjs/is-plain-object 🌑
High-performance check for plain objects.
Part of the Ocyrus suite.
✨ Features
- Blazing Fast: 4.5x faster than
lodash/isPlainObject. - Accurate: Correctly identifies objects created via
{},new Object(), orObject.create(null).
🚀 Performance
isPlainObject: ~24M ops/sec
📦 Installation
npm install @ocyrusjs/is-plain-object🛠️ Usage
import { isPlainObject } from '@ocyrusjs/is-plain-object';
isPlainObject({}); // true
isPlainObject(new Object()); // true
isPlainObject([]); // falseLicense
MIT © Nishith Patel
