UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

15 lines (14 loc) 520 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const union = (target, source, difference = false) => { return difference ? target.filter((item) => !source.includes(item)) : Array.from(new Set(target.concat(source))); }; const getReverse = (array) => { const result = []; for (let i = 0; i < array.length; i++) { result[i] = array[array.length - 1 - i]; } return result; }; exports.getReverse = getReverse; exports.union = union;