2.2.0 • Published 10 months ago

@aegenet/belt-ofields v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

npm version

@aegenet/belt-ofields

Object fields, retrieve fields (and values) of an object

💾 Installation

yarn add @aegenet/belt-ofields@^2.0.0
# or
npm i @aegenet/belt-ofields@^2.0.0

📝 Usage

import { ofields } from '@aegenet/belt-ofields';

const result = ofields({ id: 5 }, { fields: ['id'] });
// result = [['id', 5]]
const result = odiff({
  id: 5,
  code: 'Trotro',
  another: 1,
}, { fields: ['id', 'code'] });
// result = [
//   ['id', 5],
//   ['code', 'Trotro'],
// ]
2.2.0

10 months ago

2.1.0

11 months ago

1.6.2

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

2.0.0

1 year ago

1.5.0

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago