Download Fore_End/cpcn2/node_modules/is-plain-obj/index.d.ts from zxy0307/JavaWeb: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/is-plain-obj/index.d.ts
- Command line
-
hf download hf://zxy0307/JavaWeb/Fore_End/cpcn2/node_modules/is-plain-obj/index.d.ts
-
curl -L -o index.d.ts https://huggingface.co/zxy0307/JavaWeb/resolve/main/Fore_End/cpcn2/node_modules/is-plain-obj/index.d.ts
567 Bytes
| /** | |
| Check if a value is a plain object. | |
| An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`. | |
| @example | |
| ``` | |
| import isPlainObject = require('is-plain-obj'); | |
| isPlainObject({foo: 'bar'}); | |
| //=> true | |
| isPlainObject(new Object()); | |
| //=> true | |
| isPlainObject(Object.create(null)); | |
| //=> true | |
| isPlainObject([1, 2, 3]); | |
| //=> false | |
| class Unicorn {} | |
| isPlainObject(new Unicorn()); | |
| //=> false | |
| ``` | |
| */ | |
| declare function isPlainObject<Value = unknown>(value: unknown): value is Record<string | number | symbol, Value>; | |
| export = isPlainObject; | |