* Invokes `console.log()` when available. * No-op when `console.log` is not a "function". * * @api public
()
| 409 | */ |
| 410 | |
| 411 | function log() { |
| 412 | // this hackery is required for IE8/9, where |
| 413 | // the `console.log` function doesn't have 'apply' |
| 414 | return 'object' === typeof console |
| 415 | && console.log |
| 416 | && Function.prototype.apply.call(console.log, console, arguments); |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * Save `namespaces`. |