UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

23 lines (22 loc) 498 B
import { uniq, drop } from 'ramda'; import composeC from './composeC'; /** * Returns all unique but the first n elements of the given list, * or transducer/transformer (or object with a drop method). * * @func * @category List * * @param {numner} n * @param {array} xs Collection * * @return {array} * * @example * * R_.uniqDrop(2, ["foo", "foo", "foo"]) // ["foo"] * * @sig Number -> [a] -> [a] */ var uniqDrop = /*#__PURE__*/composeC(uniq, drop); export default uniqDrop;