@drtok/array-merge
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Merge two arrays

import arrayMerge from "@drtok/array-merge";

const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

const arr2 = arr.filter((item) => item % 2 === 0);

const result = arrayMerge(arr, arr2);

console.log(result);

/@drtok/array-merge/

    Package Sidebar

    Install

    npm i @drtok/array-merge

    Weekly Downloads

    0

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    3.33 kB

    Total Files

    9

    Last publish

    Collaborators

    • drtok