Lines Matching full:object
50 /// Object
51 /// Object . __proto__ ()
52 /// Object . __defineGetter__ ()
53 /// Object . __defineSetter__ ()
54 /// Object . __lookupGetter__ ()
55 /// Object . __lookupSetter__ ()
56 Object.assign<C, C>(c, c);
57 Object.create(c);
58 Object.defineProperties<C>(c, {});
59 Object.defineProperty<C>(c, 'p', c);
60 Object.entries<C>([]);
61 Object.freeze(() => {});
62 Object.fromEntries<number>([]); // OK
63 Object.getOwnPropertyDescriptor(c, 'p');
64 Object.getOwnPropertyDescriptors<C>(c);
65 Object.getOwnPropertySymbols(c);
66 Object.getPrototypeOf(c);
67 Object.hasOwnProperty('p');
68 Object.is(c, c);
69 Object.isExtensible(c);
70 Object.isFrozen(c);
71 Object.isPrototypeOf(c);
72 Object.isSealed(c);
73 Object.preventExtensions<C>(c);
74 Object.propertyIsEnumerable('p');
75 Object.seal<C>(c);
76 Object.setPrototypeOf(c, c);
77 console.log(Object.getOwnPropertyNames(object1));
78 console.log(Object.hasOwn(object1, 'a'));
79 console.log(Object.hasOwn(object1, 'toString'));
80 console.log(Object.keys(object1));
81 console.log(Object.values(object1));
82 console.log(Object.entries(object1));
125 // 'Object.assign' is allowed only with signature like: 'assign(target: Record<string, V>, ...sourc…
127 class C3 { [k: string]: Object };
129 const rec2: Record<string, number> = Object.assign(rec, new C2()); // OK
130 const rec3: C2 = Object.assign(rec, new C2()); // NOT OK, return type is '…
131 const rec4: Object = Object.assign(rec, new C2()); // NOT OK, return type is '…
132 const rec5 = Object.assign(rec, new C2()); // NOT OK, return type is i…
133 const rec6: Record<string, Object> = Object.assign(new C2(), new C3()); // NOT OK, target type is '…
134 Object.assign(rec, new C2()); // NOT OK, no return (conte…