Download datalab/web/node_modules/moment/src/lib/utils/extend.js from arshjaved/indiaai-hackathon: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/arshjaved/indiaai-hackathon/resolve/main/datalab/web/node_modules/moment/src/lib/utils/extend.js
- Command line
-
hf download hf://arshjaved/indiaai-hackathon/datalab/web/node_modules/moment/src/lib/utils/extend.js
-
curl -L -o extend.js https://huggingface.co/arshjaved/indiaai-hackathon/resolve/main/datalab/web/node_modules/moment/src/lib/utils/extend.js
345 Bytes
| import hasOwnProp from './has-own-prop'; | |
| export default function extend(a, b) { | |
| for (var i in b) { | |
| if (hasOwnProp(b, i)) { | |
| a[i] = b[i]; | |
| } | |
| } | |
| if (hasOwnProp(b, 'toString')) { | |
| a.toString = b.toString; | |
| } | |
| if (hasOwnProp(b, 'valueOf')) { | |
| a.valueOf = b.valueOf; | |
| } | |
| return a; | |
| } | |