2.2.0 • Published 10 months ago

@aegenet/belt-obj-first-key v2.2.0

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

npm version

@aegenet/belt-obj-first-key

Object first key

💾 Installation

yarn add @aegenet/belt-obj-first-key@^2.0.0
# or
npm i @aegenet/belt-obj-first-key@^2.0.0

📝 Usage

import { objectFirstKey } from '@aegenet/belt-obj-first-key';

objectFirstKey(null); // null;
objectFirstKey(undefined); // null
objectFirstKey({}); // null
objectFirstKey({ id: 1 }); // 'id'
objectFirstKey({ id: 1, code: 'go' }); // 'id'

objectFirstKey({ _privateStuff: true, id: 1, code: 'go' }, key => !key.startsWith('_')); // 'id'
2.2.0

10 months ago

2.1.0

11 months ago

1.6.2

12 months ago

1.7.0

12 months ago

1.6.1

12 months ago

2.0.0

12 months 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