How to use the dropRepeats function from ramda

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

8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
 * @param {Array} list The array to consider.
 * @return {Array} `list` without repeating elements.
 * @see R.transduce
 * @example
 *
 *     R.dropRepeats([1, 1, 1, 2, 3, 4, 4, 2, 2]); //=> [1, 2, 3, 4, 2]
 */
var dropRepeats = _curry1(_dispatchable('dropRepeats', _xdropRepeatsWith(equals), dropRepeatsWith(equals)));

/**
fork icon0
star icon0
watch icon0

+ 17 other calls in file

Other functions in ramda

Sorted by popularity

function icon

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