Spaces:
Paused
Paused
Download backend/node_modules/append-field/index.js from AUXteam/UX-agent: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/backend/node_modules/append-field/index.js
- Command line
-
hf download hf://spaces/AUXteam/UX-agent/backend/node_modules/append-field/index.js
-
curl -L -o index.js https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/backend/node_modules/append-field/index.js
307 Bytes
| var parsePath = require('./lib/parse-path') | |
| var setValue = require('./lib/set-value') | |
| function appendField (store, key, value) { | |
| var steps = parsePath(key) | |
| steps.reduce(function (context, step) { | |
| return setValue(context, step, context[step.key], value) | |
| }, store) | |
| } | |
| module.exports = appendField | |