How to use the dropRepeatsWith function from ramda
Find comprehensive JavaScript ramda.dropRepeatsWith code examples handpicked from public code repositorys.
7288 7289 7290 7291 7292 7293 7294 7295 7296 7297
* @return {Array} `list` without repeating elements. * @see R.transduce * @example * * var l = [1, -1, 1, 3, 4, -4, -4, -5, 5, 3, 3]; * R.dropRepeatsWith(R.eqBy(Math.abs), l); //=> [1, 3, 4, -5, 3] */ var dropRepeatsWith = _curry2(_dispatchable('dropRepeatsWith', _xdropRepeatsWith, function dropRepeatsWith(pred, list) { var result = []; var idx = 1;
0
0
0
+ 17 other calls in file
ramda.clone is the most popular function in ramda (30311 examples)