import { List } from 'immutable'; const originalList = List([1, 2, 3, 4, 5]); const filteredList = originalList.filter((item) => item % 2 === 0); console.log(filteredList.toArray()); // [2, 4]In this example, we first import the `List` module from the Immutable.js library. We then create an original list containing five numbers. We then use the `filter` function to create a new list containing only the even numbers. Finally, we log the resulting list to the console. The Immutable.js library is a popular package used to handle immutable data structures in JavaScript and TypeScript applications. It provides a wide range of functions and utilities that make it easy to work with immutable data, and its functional programming style encourages the creation of pure, composable functions that are ideal for building highly scalable and maintainable web applications.