Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 620 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 620 Bytes

@unction/prepend

Tests Stability Dependencies

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

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

prepend(4)([5]) // => [4, 5]
prepend("c")("ab") // => "cab"