Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@unction/appendm

unctionjs2ISC4.1.4TypeScript support: included

Takes an item and an array, appends (MUTATION) the original array with the item

unction, functional

readme

@unction/appendM

Tests Stability Dependencies

A => Array => Array<A | B>

Takes an array and an item and returns the combination of both, appended.

NOTE: This mutates the array

const data = [1, 2, 3]

appendM(4)(data)

Would return:

[1, 2, 3, 4]