---
title: "Discussion on \"'Some' method\" | Hashnode"
description: "Discussion on \"'Some' method\". I recently learned about a new array method called some method that i used in my project.This is the line of code:\n\nif (!myReadingList.some(item => item.id === book.id))\n\nSo this line will check if the book is already in My Reading List array.\n  It u..."
url: "https://hashnode.com/posts/some-method/669bf68034458b5b4767dc51"
---

[Feed](https://hashnode.com/feed) /

Discussion

# ['Some' method](https://generalprogramming.hashnode.dev/some-method?utm_source=hashnode&utm_medium=feed)

I recently learned about a new array method called some method that i used in my project.This is the line of code: if (!myReadingList.some(item => item.id === book.id)) So this line will check if the book is already in My Reading List array. It u...

Jul 20, 2024 · 1 min read · generalprogramming.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Elsie](https://hashnode.com/@ElsieW)

@ElsieW

  
[View profile](https://hashnode.com/@ElsieW)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
