RunKit + npm: object-mapper

node v10.24.1
endpointsharetweet
var objectMapper = require("object-mapper") 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…