SPB Git

spb/os-vault Public

Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.

Swift 96% Shell 3.4% Makefile 0.6%
311 B · 13 lines swift
Raw Blame History
1import Foundation23public extension Array where Element: Equatable {4    var unique: [Element] {5        var uniqueValues: [Element] = []6        forEach { item in7            guard !uniqueValues.contains(item) else { return }8            uniqueValues.append(item)9        }10        return uniqueValues11    }12}13