How to use the empty function from ramda

Find comprehensive JavaScript ramda.empty code examples handpicked from public code repositorys.

1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
* @sig a -> a
* @param {*} x
* @return {*}
* @example
*
*      R.empty(Just(42));      //=> Nothing()
*      R.empty([1, 2, 3]);     //=> []
*      R.empty('unicorns');    //=> ''
*      R.empty({x: 1, y: 2});  //=> {}
*/
fork icon0
star icon0
watch icon0

+ 89 other calls in file

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)