object-component

Object utils.

3 个版本
安装
npm install object-component
yarn add object-component
pnpm add object-component
bun add object-component
README

object

Object keys / values / length.

Example

var is = require('is');
is.date(obj);

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

版本列表
0.0.3 2012-10-15
0.0.2 2012-09-20
0.0.1 2012-09-19