npm.io
6.13.0 • Published 5 years ago

@unction/append

Licence
SEE LICENSE IN LICENSE
Version
6.13.0
Deps
1
Size
19 kB
Vulns
0
Weekly
0

@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.

Keywords