UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

10 lines 281 B
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; export function addAll(array, elements) { if (!array) { return elements; } if (!elements) { return array; } return [].concat(_toConsumableArray(array), _toConsumableArray(elements)); }