@unction/appendm
v4.1.4
Published
Takes an item and an array, appends (MUTATION) the original array with the item
Downloads
11
Readme
@unction/appendM
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]