Download node_modules/d3-interpolate/src/object.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/object.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-interpolate/src/object.js
-
curl -L -o object.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-interpolate/src/object.js
393 Bytes
| import value from "./value.js"; | |
| export default function(a, b) { | |
| var i = {}, | |
| c = {}, | |
| k; | |
| if (a === null || typeof a !== "object") a = {}; | |
| if (b === null || typeof b !== "object") b = {}; | |
| for (k in b) { | |
| if (k in a) { | |
| i[k] = value(a[k], b[k]); | |
| } else { | |
| c[k] = b[k]; | |
| } | |
| } | |
| return function(t) { | |
| for (k in i) c[k] = i[k](t); | |
| return c; | |
| }; | |
| } | |