@@ -167,6 +167,8 @@ formatted according to the returned Object. This is similar to how |
167 | 167 |
|
168 | 168 | ## util.isArray(object) |
169 | 169 |
|
| 170 | + Stability: 0 - Deprecated |
| 171 | + |
170 | 172 | Internal alias for Array.isArray. |
171 | 173 |
|
172 | 174 | Returns `true` if the given "object" is an `Array`. `false` otherwise. |
@@ -180,9 +182,10 @@ Returns `true` if the given "object" is an `Array`. `false` otherwise. |
180 | 182 | util.isArray({}) |
181 | 183 | // false |
182 | 184 |
|
183 | | - |
184 | 185 | ## util.isRegExp(object) |
185 | 186 |
|
| 187 | + Stability: 0 - Deprecated |
| 188 | + |
186 | 189 | Returns `true` if the given "object" is a `RegExp`. `false` otherwise. |
187 | 190 |
|
188 | 191 | var util = require('util'); |
@@ -194,9 +197,10 @@ Returns `true` if the given "object" is a `RegExp`. `false` otherwise. |
194 | 197 | util.isRegExp({}) |
195 | 198 | // false |
196 | 199 |
|
197 | | - |
198 | 200 | ## util.isDate(object) |
199 | 201 |
|
| 202 | + Stability: 0 - Deprecated |
| 203 | + |
200 | 204 | Returns `true` if the given "object" is a `Date`. `false` otherwise. |
201 | 205 |
|
202 | 206 | var util = require('util'); |
@@ -208,9 +212,10 @@ Returns `true` if the given "object" is a `Date`. `false` otherwise. |
208 | 212 | util.isDate({}) |
209 | 213 | // false |
210 | 214 |
|
211 | | - |
212 | 215 | ## util.isError(object) |
213 | 216 |
|
| 217 | + Stability: 0 - Deprecated |
| 218 | + |
214 | 219 | Returns `true` if the given "object" is an `Error`. `false` otherwise. |
215 | 220 |
|
216 | 221 | var util = require('util'); |
@@ -222,9 +227,10 @@ Returns `true` if the given "object" is an `Error`. `false` otherwise. |
222 | 227 | util.isError({ name: 'Error', message: 'an error occurred' }) |
223 | 228 | // false |
224 | 229 |
|
225 | | - |
226 | 230 | ## util.isBoolean(object) |
227 | 231 |
|
| 232 | + Stability: 0 - Deprecated |
| 233 | + |
228 | 234 | Returns `true` if the given "object" is a `Boolean`. `false` otherwise. |
229 | 235 |
|
230 | 236 | var util = require('util'); |
@@ -236,9 +242,10 @@ Returns `true` if the given "object" is a `Boolean`. `false` otherwise. |
236 | 242 | util.isBoolean(false) |
237 | 243 | // true |
238 | 244 |
|
239 | | - |
240 | 245 | ## util.isNull(object) |
241 | 246 |
|
| 247 | + Stability: 0 - Deprecated |
| 248 | + |
242 | 249 | Returns `true` if the given "object" is strictly `null`. `false` otherwise. |
243 | 250 |
|
244 | 251 | var util = require('util'); |
@@ -250,9 +257,10 @@ Returns `true` if the given "object" is strictly `null`. `false` otherwise. |
250 | 257 | util.isNull(null) |
251 | 258 | // true |
252 | 259 |
|
253 | | - |
254 | 260 | ## util.isNullOrUndefined(object) |
255 | 261 |
|
| 262 | + Stability: 0 - Deprecated |
| 263 | + |
256 | 264 | Returns `true` if the given "object" is `null` or `undefined`. `false` otherwise. |
257 | 265 |
|
258 | 266 | var util = require('util'); |
@@ -264,9 +272,10 @@ Returns `true` if the given "object" is `null` or `undefined`. `false` otherwise |
264 | 272 | util.isNullOrUndefined(null) |
265 | 273 | // true |
266 | 274 |
|
267 | | - |
268 | 275 | ## util.isNumber(object) |
269 | 276 |
|
| 277 | + Stability: 0 - Deprecated |
| 278 | + |
270 | 279 | Returns `true` if the given "object" is a `Number`. `false` otherwise. |
271 | 280 |
|
272 | 281 | var util = require('util'); |
@@ -280,9 +289,10 @@ Returns `true` if the given "object" is a `Number`. `false` otherwise. |
280 | 289 | util.isNumber(NaN) |
281 | 290 | // true |
282 | 291 |
|
283 | | - |
284 | 292 | ## util.isString(object) |
285 | 293 |
|
| 294 | + Stability: 0 - Deprecated |
| 295 | + |
286 | 296 | Returns `true` if the given "object" is a `String`. `false` otherwise. |
287 | 297 |
|
288 | 298 | var util = require('util'); |
@@ -296,9 +306,10 @@ Returns `true` if the given "object" is a `String`. `false` otherwise. |
296 | 306 | util.isString(5) |
297 | 307 | // false |
298 | 308 |
|
299 | | - |
300 | 309 | ## util.isSymbol(object) |
301 | 310 |
|
| 311 | + Stability: 0 - Deprecated |
| 312 | + |
302 | 313 | Returns `true` if the given "object" is a `Symbol`. `false` otherwise. |
303 | 314 |
|
304 | 315 | var util = require('util'); |
@@ -310,9 +321,10 @@ Returns `true` if the given "object" is a `Symbol`. `false` otherwise. |
310 | 321 | util.isSymbol(Symbol('foo')) |
311 | 322 | // true |
312 | 323 |
|
313 | | - |
314 | 324 | ## util.isUndefined(object) |
315 | 325 |
|
| 326 | + Stability: 0 - Deprecated |
| 327 | + |
316 | 328 | Returns `true` if the given "object" is `undefined`. `false` otherwise. |
317 | 329 |
|
318 | 330 | var util = require('util'); |
@@ -325,9 +337,10 @@ Returns `true` if the given "object" is `undefined`. `false` otherwise. |
325 | 337 | util.isUndefined(null) |
326 | 338 | // false |
327 | 339 |
|
328 | | - |
329 | 340 | ## util.isObject(object) |
330 | 341 |
|
| 342 | + Stability: 0 - Deprecated |
| 343 | + |
331 | 344 | Returns `true` if the given "object" is strictly an `Object` __and__ not a |
332 | 345 | `Function`. `false` otherwise. |
333 | 346 |
|
@@ -342,9 +355,10 @@ Returns `true` if the given "object" is strictly an `Object` __and__ not a |
342 | 355 | util.isObject(function(){}) |
343 | 356 | // false |
344 | 357 |
|
345 | | - |
346 | 358 | ## util.isFunction(object) |
347 | 359 |
|
| 360 | + Stability: 0 - Deprecated |
| 361 | + |
348 | 362 | Returns `true` if the given "object" is a `Function`. `false` otherwise. |
349 | 363 |
|
350 | 364 | var util = require('util'); |
@@ -359,9 +373,10 @@ Returns `true` if the given "object" is a `Function`. `false` otherwise. |
359 | 373 | util.isFunction(Bar) |
360 | 374 | // true |
361 | 375 |
|
362 | | - |
363 | 376 | ## util.isPrimitive(object) |
364 | 377 |
|
| 378 | + Stability: 0 - Deprecated |
| 379 | + |
365 | 380 | Returns `true` if the given "object" is a primitive type. `false` otherwise. |
366 | 381 |
|
367 | 382 | var util = require('util'); |
@@ -385,9 +400,10 @@ Returns `true` if the given "object" is a primitive type. `false` otherwise. |
385 | 400 | util.isPrimitive(new Date()) |
386 | 401 | // false |
387 | 402 |
|
388 | | - |
389 | 403 | ## util.isBuffer(object) |
390 | 404 |
|
| 405 | + Stability: 0 - Deprecated |
| 406 | + |
391 | 407 | Returns `true` if the given "object" is a `Buffer`. `false` otherwise. |
392 | 408 |
|
393 | 409 | var util = require('util'); |
@@ -399,7 +415,6 @@ Returns `true` if the given "object" is a `Buffer`. `false` otherwise. |
399 | 415 | util.isBuffer(new Buffer('hello world')) |
400 | 416 | // true |
401 | 417 |
|
402 | | - |
403 | 418 | ## util.inherits(constructor, superConstructor) |
404 | 419 |
|
405 | 420 | Inherit the prototype methods from one |
|