MCPcopy Create free account
hub / github.com/Effect-TS/effect / UniqueArray

Function UniqueArray

packages/effect/src/Schema.ts:4756–4758  ·  view source on GitHub ↗
(item: S)

Source from the content-addressed store, hash-verified

4754 * @since 4.0.0
4755 */
4756export function UniqueArray<S extends Constraint>(item: S): UniqueArray<S> {
4757 return ArraySchema(item).check(isUnique())
4758}
4759
4760/**
4761 * Type-level representation returned by {@link mutable}.

Callers

nothing calls this directly

Calls 2

isUniqueFunction · 0.85
checkMethod · 0.65

Tested by

no test coverage detected