UNPKG

rubico

Version:

[a]synchronous functional programming

9 lines (7 loc) 450 B
/** * rubico v2.6.2 * https://github.com/a-synchronous/rubico * (c) 2019-2024 Richard Tong * rubico may be freely distributed under the MIT license. */ !function(r,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):r.uniq=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const r=Array.isArray;return t=>{if(!r(t))throw Error("uniq(arr): arr is not an array");return[...new Set(t)]}}());