Download src/js/util/keyMirror.js from merve/git-101: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/util/keyMirror.js
- Command line
-
hf download hf://spaces/merve/git-101/src/js/util/keyMirror.js
-
curl -L -o keyMirror.js https://huggingface.co/spaces/merve/git-101/resolve/main/src/js/util/keyMirror.js
345 Bytes
| ; | |
| /** | |
| * Our own flavor of keyMirror since I get some weird | |
| * obscure error when trying to import the react lib one. | |
| */ | |
| var keyMirror = function(obj) { | |
| var result = {}; | |
| for (var key in obj) { | |
| if (!obj.hasOwnProperty(key)) { | |
| continue; | |
| } | |
| result[key] = key; | |
| } | |
| return result; | |
| }; | |
| module.exports = keyMirror; | |