Object key value to pairs for next.
npm install -S @jswork/next-pairs
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' }
];
Code released under the MIT license.