VOOZH about

URL: https://www.geeksforgeeks.org/javascript/collect-js-wherenotin-method/

⇱ Collect.js whereNotIn() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Collect.js whereNotIn() Method

Last Updated : 15 Jul, 2025

The whereNotIn() method in collect.js is used to filter the elements from the given collection on the basis of key and value. If particular set of key-value is found then it is filtered out.

Installation:

  • In NodeJs:
    npm install collect.js
  • CDN for collect.js
    <script src="https://cdnjs.com/libraries/collect.js"></script>

Syntax:

whereNotIn(key, array_value);

Parameters:

  • key: The key whose value is to be removed.
  • array_value: The array of values that key is to be removed.

Return Value: It returns the object.

Example 1:

Output:

👁 Image

Example 2:

Comment
Article Tags: