
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@mojule/list
Advanced tools
List factory - work in progress
Don't use list when your data is already in arrays - use list when you're
dealing with iterables/generators and want array-like comprehensions like
filter, map, forEach, find, some etc.
You can also use it as an immutable collection if that's your thing, all functions return a new list rather than mutate an existing one.
list is not super performant inside hot code - V8 does not optimize generator
functions - use arrays if you need very high performance - code is somewhat
optimised but still slow compared to arrays. Further optimization is likely
possible, PRs welcome.
npm install @mojule/list
Creates "lists" from any underlying iterable
Live, if the underlying data source changes, so do any derived lists:
const arr = [ 1, 2, 3 ]
const list = List( arr )
const filtered = list.filter( n => n % 2 === 0 )
console.log( Array.from( filtered ) ) // [ 2 ]
arr.push( 4 )
console.log( Array.from( filtered ) ) // [ 2, 4 ]
Can also be used to create new immutable lists:
const list1 = List( 1, 2, 3 )
const list2 = List( 4, 5, 6 )
const list3 = list1.concat( list2 )
FAQs
list
We found that @mojule/list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.