log.js 317 B

12345678910111213
  1. /*eslint no-console: 0 */
  2. /**
  3. * Logs a message to the developer console (if it exists and is active).
  4. */
  5. function log() {
  6. if (typeof console === 'object' && console.log) {
  7. // IE does not support console.log.apply
  8. Function.prototype.apply.call(console.log, console, arguments);
  9. }
  10. }
  11. export default log;