Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 966 Bytes

File metadata and controls

11 lines (9 loc) · 966 Bytes

Common Utils

Standalone utility functions exported from @webiny/stdlib. No DI container required — import and call directly.

Util Description
boolean Semantic boolean coercion (toBoolean, isTruthy, isFalsy)
dotProp Immutable and mutable get/set/delete on nested objects via dot-notation
uuid RFC 4122 v4 UUID generator (native randomUUID + getRandomValues fallback)
mdbid MongoDB-compatible ObjectId generator via bson-objectid
generateId Nanoid-based ID generators with configurable alphabets and sizes