Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/object

Object utilities
https://github.com/component/object

Last synced: 13 days ago
JSON representation

Object utilities

Awesome Lists containing this project

README

        

# object

Object utils.

## API

### .keys(obj)

Return the keys for `obj`.

### .values(obj)

Return the values for `obj`.

### .length(obj)

Return the number of keys for `obj`.

### .isEmpty(obj)

Check if `obj` is empty.

### .merge(a, b)

Merge object `b` into `a`, returns `a`.
Precedence is given to `b`.

## License

MIT