Skip to content

Commit 058f2d7

Browse files
fix: add console.log wrappers to all constructorName calls in example
1 parent 15e7e57 commit 058f2d7

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

  • lib/node_modules/@stdlib/utils/constructor-name/examples

lib/node_modules/@stdlib/utils/constructor-name/examples/index.js

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -41,131 +41,131 @@ function noop() {
4141
// Do nothing...
4242
}
4343

44-
constructorName( 'a' );
44+
console.log( constructorName( 'a' ) );
4545
// => 'String'
4646

47-
constructorName( 5 );
47+
console.log( constructorName( 5 ) );
4848
// => 'Number'
4949

50-
constructorName( NaN );
50+
console.log( constructorName( NaN ) );
5151
// => 'Number'
5252

53-
constructorName( null );
53+
console.log( constructorName( null ) );
5454
// => 'Null'
5555

56-
constructorName( void 0 );
56+
console.log( constructorName( void 0 ) );
5757
// => 'Undefined'
5858

59-
constructorName( true );
59+
console.log( constructorName( true ) );
6060
// => 'Boolean'
6161

62-
constructorName( false );
62+
console.log( constructorName( false ) );
6363
// => 'Boolean'
6464

65-
constructorName( {} );
65+
console.log( constructorName( {} ) );
6666
// => 'Object'
6767

68-
constructorName( [] );
68+
console.log( constructorName( [] ) );
6969
// => 'Array'
7070

71-
constructorName( noop );
71+
console.log( constructorName( noop ) );
7272
// => 'Function'
7373

74-
constructorName( /./ );
74+
console.log( constructorName( /./ ) );
7575
// => 'RegExp'
7676

77-
constructorName( new Date() );
77+
console.log( constructorName( new Date() ) );
7878
// => 'Date'
7979

8080
if ( hasMapSupport() ) {
81-
constructorName( new Map() );
81+
console.log( constructorName( new Map() ) );
8282
// => 'Map'
8383
}
8484
if ( hasWeakMapSupport() ) {
85-
constructorName( new WeakMap() );
85+
console.log( constructorName( new WeakMap() ) );
8686
// => 'WeakMap'
8787
}
8888
if ( hasSetSupport() ) {
89-
constructorName( new Set() );
89+
console.log( constructorName( new Set() ) );
9090
// => 'Set'
9191
}
9292
if ( hasWeakSetSupport() ) {
93-
constructorName( new WeakSet() );
93+
console.log( constructorName( new WeakSet() ) );
9494
// => 'WeakSet'
9595
}
9696
if ( hasSymbolSupport() ) {
97-
constructorName( Symbol( 'beep' ) );
97+
console.log( constructorName( Symbol( 'beep' ) ) );
9898
// => 'Symbol'
9999
}
100-
constructorName( new Error() );
100+
console.log( constructorName( new Error() ) );
101101
// => 'Error'
102102

103-
constructorName( new TypeError() );
103+
console.log( constructorName( new TypeError() ) );
104104
// => 'TypeError'
105105

106-
constructorName( new SyntaxError() );
106+
console.log( constructorName( new SyntaxError() ) );
107107
// => 'SyntaxError'
108108

109-
constructorName( new URIError() );
109+
console.log( constructorName( new URIError() ) );
110110
// => 'URIError'
111111

112-
constructorName( new RangeError() );
112+
console.log( constructorName( new RangeError() ) );
113113
// => 'RangeError'
114114

115-
constructorName( new ReferenceError() );
115+
console.log( constructorName( new ReferenceError() ) );
116116
// => 'ReferenceError'
117117

118-
constructorName( new EvalError() );
118+
console.log( constructorName( new EvalError() ) );
119119
// => 'EvalError'
120120

121-
constructorName( new Int8Array() );
121+
console.log( constructorName( new Int8Array() ) );
122122
// => 'Int8Array'
123123

124-
constructorName( new Uint8Array() );
124+
console.log( constructorName( new Uint8Array() ) );
125125
// => 'Uint8Array'
126126

127-
constructorName( new Uint8ClampedArray() );
127+
console.log( constructorName( new Uint8ClampedArray() ) );
128128
// => 'Uint8ClampedArray'
129129

130-
constructorName( new Int16Array() );
130+
console.log( constructorName( new Int16Array() ) );
131131
// => 'Int16Array'
132132

133-
constructorName( new Uint16Array() );
133+
console.log( constructorName( new Uint16Array() ) );
134134
// => 'Uint16Array'
135135

136-
constructorName( new Int32Array() );
136+
console.log( constructorName( new Int32Array() ) );
137137
// => 'Int32Array'
138138

139-
constructorName( new Uint32Array() );
139+
console.log( constructorName( new Uint32Array() ) );
140140
// => 'Uint32Array'
141141

142-
constructorName( new Float32Array() );
142+
console.log( constructorName( new Float32Array() ) );
143143
// => 'Float32Array'
144144

145-
constructorName( new Float64Array() );
145+
console.log( constructorName( new Float64Array() ) );
146146
// => 'Float64Array'
147147

148-
constructorName( new ArrayBuffer() );
148+
console.log( constructorName( new ArrayBuffer() ) );
149149
// => 'ArrayBuffer'
150150

151-
constructorName( new Buffer( 'beep' ) );
151+
console.log( constructorName( new Buffer( 'beep' ) ) );
152152
// => 'Buffer'
153153

154-
constructorName( Math );
154+
console.log( constructorName( Math ) );
155155
// => 'Math'
156156

157-
constructorName( JSON );
157+
console.log( constructorName( JSON ) );
158158
// => 'JSON'
159159

160160
function Person1() {
161161
return this;
162162
}
163-
constructorName( new Person1() );
163+
console.log( constructorName( new Person1() ) );
164164
// => 'Person1'
165165

166166
// eslint-disable-next-line func-names, no-restricted-syntax, func-style
167167
var Person2 = function () {
168168
return this;
169169
};
170-
constructorName( new Person2() );
170+
console.log( constructorName( new Person2() ) );
171171
// => '' || 'Person2'

0 commit comments

Comments
 (0)