How to use the without function from ramda

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

1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
}

let isFromSync = this._initialBlocksToFetchCount === 0;
if (contains(hash, this._requestedBlockHashes)) {
  debug(`Fetched requested block ${blockNumber}, h: ${hash}`);
  this._requestedBlockHashes = without([hash], this._requestedBlockHashes);
  isFromSync = true;
}

block.blockNumber = blockNumber;
fork icon12
star icon5
watch icon7

25
26
27
28
29
30
31
32
33
34
35
const Observable = (init = {}) => {
  const subscribers = new Map();


  const handler = {
    ownKeys(target) {
      return without('__path__', Reflect.ownKeys(target));
    },
    set(target, path, value) {
      const fullPath = Reflect.get(target, '__path__')
        ? `${Reflect.get(target, '__path__')}.${path}`
fork icon0
star icon0
watch icon1

+ 80 other calls in file

8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
 * @param {Array} list2 The array to remove values from.
 * @return {Array} The new array without values in `list1`.
 * @see R.transduce
 * @example
 *
 *      R.without([1, 2], [1, 2, 1, 3, 4]); //=> [3, 4]
 */
var without = _curry2(function (xs, list) {
    return reject(flip(_contains)(xs), list);
});
fork icon0
star icon0
watch icon0

+ 17 other calls in file

12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
* @sig Number -> Number -> [a] -> [a]
* @param {Number} start The position to start removing elements
* @param {Number} count The number of elements to remove
* @param {Array} list The list to remove from
* @return {Array} A new Array with `count` elements from `start` removed.
* @see R.without
* @example
*
*      R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=> [1,2,6,7,8]
*/
fork icon0
star icon0
watch icon2

+ 7 other calls in file

Other functions in ramda

Sorted by popularity

function icon

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