UNPKG

graphql-transformer-core

Version:

A framework to transform from GraphQL SDL to AWS cloudFormation.

16 lines 426 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function setIn(obj, path, value) { let val = obj; for (let i = 0; i < path.length; i++) { const key = path[i]; if (val[key] && i === path.length - 1) { val[key] = value; } else if (val[key]) { val = val[key]; } } } exports.default = setIn; //# sourceMappingURL=setIn.js.map