Creates an empty Obj.
Deserializes an Obj from a base64-encoded binary string.
Deserializes an Obj from a JSON string.
Creates an Obj from a plain object. Alias for Obj().
// Build headers with conditional auth
const headers = Obj({ "User-Agent": "MyApp/1.0" })
.assign(options.headers)
.when(requiresAuth, { Authorization: `Bearer ${token}` })
.value()
// Object manipulation
const user = Obj({ name: "John", age: 30, role: "admin" })
user.pick("name", "role").value() // { name: "John", role: "admin" }
user.omit("role").value() // { name: "John", age: 30 }
user.get("name") // Some("John")
Obj - Immutable object wrapper with fluent operations.
Wraps plain JavaScript objects and provides chainable, immutable operations for building and transforming them. Implements the full Functype interface (Functor, Foldable, Serializable, Matchable, etc.).