elasticlunr

utils

property
elasticlunr.utils

A namespace containing utils for the rest of the lunr library

elasticlunr.utils = {}

warn

property
elasticlunr.utils.warn

Option name Type Description
message String

The message to be printed.

Print a warning message to the console.

elasticlunr.utils.warn = (function (global) {
  return function (message) {
    if (global.console && console.warn) {
      console.warn(message)
    }
  }
})(this)