Download Fore_End/cpcn2/node_modules/is-plain-obj/index.js from zxy0307/JavaWeb: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/is-plain-obj/index.js
- Command line
-
hf download hf://zxy0307/JavaWeb/Fore_End/cpcn2/node_modules/is-plain-obj/index.js
-
curl -L -o index.js https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/is-plain-obj/index.js
245 Bytes
| ; | |
| module.exports = value => { | |
| if (Object.prototype.toString.call(value) !== '[object Object]') { | |
| return false; | |
| } | |
| const prototype = Object.getPrototypeOf(value); | |
| return prototype === null || prototype === Object.prototype; | |
| }; | |