File: library_ObjectPrototypeProperties.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (61 lines) | stat: -rw-r--r-- 2,042 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
=== tests/cases/compiler/library_ObjectPrototypeProperties.ts ===
// Properties of the Object Prototype Object as per ES5 spec
// http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.4
Object.prototype.constructor;
>Object.prototype.constructor : Function
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>constructor : Function

Object.prototype.toString();
>Object.prototype.toString() : string
>Object.prototype.toString : () => string
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>toString : () => string

Object.prototype.toLocaleString();
>Object.prototype.toLocaleString() : string
>Object.prototype.toLocaleString : () => string
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>toLocaleString : () => string

Object.prototype.valueOf();
>Object.prototype.valueOf() : Object
>Object.prototype.valueOf : () => Object
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>valueOf : () => Object

Object.prototype.hasOwnProperty("string");
>Object.prototype.hasOwnProperty("string") : boolean
>Object.prototype.hasOwnProperty : (v: string | number | symbol) => boolean
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>hasOwnProperty : (v: string | number | symbol) => boolean
>"string" : "string"

Object.prototype.isPrototypeOf(Object);
>Object.prototype.isPrototypeOf(Object) : boolean
>Object.prototype.isPrototypeOf : (v: Object) => boolean
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>isPrototypeOf : (v: Object) => boolean
>Object : ObjectConstructor

Object.prototype.propertyIsEnumerable("string");
>Object.prototype.propertyIsEnumerable("string") : boolean
>Object.prototype.propertyIsEnumerable : (v: string | number | symbol) => boolean
>Object.prototype : Object
>Object : ObjectConstructor
>prototype : Object
>propertyIsEnumerable : (v: string | number | symbol) => boolean
>"string" : "string"