env: {
url: 'https://jsonplaceholder.typicode.com/todos/2',
data: {
userId: 1,
id: 2,
title: 'quis ut nam facilis et officia qui',
completed: false
}
}
// self = "#data[title]"
for (let variable in env) {
if (typeof env[variable] == 'object') {
for (let prop in env[variable]) {
new RegExp("\#" + variable + "\[" + prop + "\]", 'g').exec(self) // null
}
}
}