UNPKG

@modern-kit/utils

Version:
15 lines (12 loc) 288 B
'use strict'; function getInValue(obj, key) { const paths = key.split("."); let result = obj; for (let i = 0; i < paths.length; i++) { const path = paths[i]; result = result[path]; } return result; } exports.getInValue = getInValue; //# sourceMappingURL=index.cjs.map