1.0.0 • Published 4 years ago
@feizheng/next-pairs v1.0.0
next-pairs
Object key value to pairs for next.
installation
npm install -S @feizheng/next-pairs
usage
import '@feizheng/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' }
];
1.0.0
4 years ago