1.0.0 • Published 4 years ago
@feizheng/next-map-map v1.0.0
next-map-map
Map map method for next.
installation
npm install -S @feizheng/next-map-map
usage
import '@feizheng/next-map-map';
const obj1 = {
name: ['fei'],
age: [100]
};
const rs1 = nx.mapMap(obj1, function (key, value) {
return {
key: key,
value: value[0]
}
});
// { name:'fei', age: 100 }
1.0.0
4 years ago