---
title: "Discussion on \"Using some(), every() and Object.values() to check values from within an object\" | Hashnode"
description: "Discussion on \"Using some(), every() and Object.values() to check values from within an object\". Often you want to check if a value is within an object. Heres a way we can do this with some() every() and Object.values().\nObject.values\nObject.values is used to create an array from the values in an Object. You pass an object into Object.values and..."
url: "https://hashnode.com/posts/using-some-every-and-objectvalues-to-check-values-from-within-an-object/5f97e1636ea7602886a15da0"
---

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

Discussion

# [Using some(), every() and Object.values() to check values from within an object](https://davidbell.hashnode.dev/using-some-every-and-objectvalues-to-check-values-from-within-an-object?utm_source=hashnode&utm_medium=feed)

Often you want to check if a value is within an object. Heres a way we can do this with some() every() and Object.values(). Object.values Object.values is used to create an array from the values in an Object. You pass an object into Object.values and...

Oct 27, 2020 · 2 min read · davidbell.hashnode.dev  
Updated Mar 18, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[David Bell](https://hashnode.com/@davidbell)

@davidbell · Birmingham, England

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

Self taught developer, working with Nextjs, TypeScript, Graphql and React.

## Responses 1

Markdown supported · ⌘↵ to post

[Lize du Plessis](https://hashnode.com/@Lize)

[Feb 16, 2022](https://hashnode.com/posts/using-some-every-and-objectvalues-to-check-values-from-within-an-object/5f97e1636ea7602886a15da0/comment/620ce2df7cf10d2765e29c88)

Brilliant!
