import { array } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { append } = array;
Create a new array by appending an item to the end of an existing array.
Examples
Example 1
Example 1
import * as A from "./array.ts";
import { pipe } from "./fn.ts";
const result = pipe(
[1, 2, 3],
A.append(4),
); // [1, 2, 3, 4]
Parameters
last: A