https://github.com/sindresorhus/object-values
Get the values of an object
https://github.com/sindresorhus/object-values
Last synced: 6 months ago
JSON representation
Get the values of an object
- Host: GitHub
- URL: https://github.com/sindresorhus/object-values
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2014-02-06T17:31:09.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T00:28:40.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T20:26:53.686Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 26
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- fucking-awesome-micro-npm-packages - object-values - Get the values of an object. (Modules / Object)
- awesome-micro-npm-packages - object-values - Get the values of an object. (Modules / Object)
- awesome-micro-npm-packages-zh - object-values - 获取对象的值. (模块 / 对象)
- awesome-micro-npm-packages - object-values - Get the values of an object. (Modules / Object)
README
Deprecated in favor of `Object.values()`.
---
# object-values
> Get the values of an object
Returns an array of own enumerable property values of an object.
## Install
```
$ npm install object-values
```
## Usage
```js
const objectValues = require('object-values');
objectValues({foo: 0, bar: 1});
//=> [0, 1]
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)