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