source:
node_modules/es-toolkit/dist/compat/array/uniq.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 247 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | import { uniq as uniq$1 } from '../../array/uniq.mjs'; |
| 2 | import { isArrayLike } from '../predicate/isArrayLike.mjs'; | |
| 3 | ||
| 4 | function uniq(arr) { | |
| 5 | if (!isArrayLike(arr)) { | |
| 6 | return []; | |
| 7 | } | |
| 8 | return uniq$1(Array.from(arr)); | |
| 9 | } | |
| 10 | ||
| 11 | export { uniq }; |
Note:
See TracBrowser
for help on using the repository browser.
