object
Dependency-free object + iterable utilities.
Value guards / coercions / shape types: isRecord narrows parsed JSON
to a record, toNumber coerces a hand-typed numeral, toBoolean
coerces loose truthy/falsy values, toDuration parses 1h30m /
2 milliseconds to millis, toDate coerces a date/ISO string/epoch
number/relative duration (toDate and toDuration fall back to each other, so
either accepts both readings), optional
spreads a field only when it is present, deepEqual compares
structurally, isSerializableValue rejects anything a JSON round trip
would lose or coerce, toStableKey canonicalizes a value so an identity
can be derived from it, and NameLike/NonFunctionKeys describe
object shapes.
Iterable helpers: generator flattens mixed arguments; sequence
wraps source(s) in a lazy, Array-compatible Sequence. Every
transform/terminal is a standalone function operating on plain Containers (see map, filter, group, …); the Sequence methods are thin forwarders over them so the same logic backs both
the free-function and the fluent/chained styles.
Interfaces
Section titled “Interfaces”Type Aliases
Section titled “Type Aliases”- Collection
- Container
- DeepEqualComparator
- NonFunctionKeys
- OneOrMany
- Sequence
- SerializablePrimitive
- SerializableValue
Functions
Section titled “Functions”- at
- concat
- deepEqual
- distinct
- every
- filter
- find
- findIndex
- findLast
- findLastIndex
- flat
- flatMap
- forEach
- generator
- group
- isCollection
- isContainer
- isEmpty
- isOneOrMany
- isRecord
- isSerializableValue
- map
- nonNull
- optional
- sequence
- some
- take
- toArray
- toBoolean
- toDate
- toDuration
- toNumber
- toOneOrMany
- toStableKey
- values