Namespace: utils

lunr.utils

A namespace containing utils for the rest of the lunr library

Source:

Methods

(static) asString(obj) → {String}

Convert an object to a string.

In the case of null and undefined the function returns the empty string, in all other cases the result of calling toString on the passed object is returned.

Parameters:
Name Type Description
obj Any

The object to convert to a string.

Source:
Returns:

string representation of the passed object.

Type
String

(static) warn(message)

Print a warning message to the console.

Parameters:
Name Type Description
message String

The message to be printed.

Source: