RunKit + npm: object-mapper

node v13.14.0
endpointsharetweet
var objectMapper = require("object-mapper@5.0.0") let map = { 'nbMember': 'maxPlayerCount', 'activityList[].id': 'activityList[].id', } let objectToMap = {nbMember : 5, activityList: []} console.log(objectMapper(objectToMap, map));
Created from: https://npm.runkit.com/object-mapper
Loading…