1.0.2 • Published 3 years ago
@jswork/next-map-map v1.0.2
next-map-map
Map map method for next.
installation
npm install -S @jswork/next-map-map
usage
import '@jswork/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 }
license
Code released under the MIT license.