mongez-supportive-is-collections
CommunityInfer value shapes and emptiness quickly.
Software Engineering#typescript#is-empty#shape-predicates#object-check#plain-object#array-check#iterable-check
Authorhassanzohdy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers need reliable predicates to determine the shape and emptiness of values in JavaScript without pulling in heavy utilities. This skill provides a focused set of shape checks to distinguish objects, arrays, iterables, and emptiness, enabling safer data flows and validation.
Core Features & Use Cases
- isObject: truthy when the value is any object type, including arrays, dates, and class instances, minus null and functions.
- isPlainObject: true only for plain objects like {} or Object.create(null) with null prototype edge cases.
- Is.array: true for literal arrays, false for array-like or other iterables.
- isIterable: true for values with a [Symbol.iterator] method, including strings and collections.
- isEmpty: smart emptiness with nuanced rules for null, undefined, empty strings, zero values, maps/sets, and plain objects.
Quick Start
Import the predicates from @mongez/supportive-is and begin using isObject, isPlainObject, Is.array, isIterable, and isEmpty in your validation logic.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mongez-supportive-is-collections Download link: https://github.com/hassanzohdy/supportive-is/archive/main.zip#mongez-supportive-is-collections Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.