Example 1 — Official Sample
Put 'fee' in front of the rest of the giant’s chant.
const chant = R.prepend('fee', ['fi', 'fo', 'fum']);
console.log(chant); // ["fee","fi","fo","fum"] How It Works
- Item.
'fee'is the value to add. - List.
['fi', 'fo', 'fum']is copied after it. - Result. A new 4-item array with
'fee'at index0.
