Skip to content

afeiship/next-pairs

Repository files navigation

next-pairs

Object key value to pairs for next.

version license size download

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.