1.0.0 • Published 3 years ago
@jswork/next-pairs v1.0.0
next-pairs
Object key value to pairs for next.
installation
npm install -S @jswork/next-pairs
usage
import '@jswork/next-pairs';
const obj = { name: 'fei', email: '1290657123@qq.com' };
const res = nx.pairs(obj);
// result
[
{ key: 'name', value: 'fei' },
{ key: 'email', value: '1290657123@qq.com' }
];
license
Code released under the MIT license.
1.0.0
3 years ago