UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (8 loc) 217 B
import { isArrayLike } from '../predicate/isArrayLike.mjs'; function join(array, separator) { if (!isArrayLike(array)) { return ''; } return Array.from(array).join(separator); } export { join };