Skip to content

unctionjs/append

Repository files navigation

@unction/append

Tests Stability Dependencies

A => OrderedArray | Set | Record<string | number | symbol, unknown> | Map<B, unknown> | string => Array | string

Takes a value and puts it at the end of the given list.

append(4)([5]) // => [5, 4]
append("c")("ab") // => "abc"

NOTE: While there is a type annotation in the README, this function cannot have type annotations due to a bug in flow.