UNPKG

solr-client

Version:

A Solr client library for indexing, adding, deleting, committing, optimizing and searching documents within an Apache Solr installation (version>=3.2)

14 lines 410 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toArray = void 0; function toArray(value, defaultValue) { if (Array.isArray(value)) { return value; } defaultValue = defaultValue || ''; return value === null || value === undefined ? [defaultValue] : [value]; } exports.toArray = toArray; //# sourceMappingURL=array.js.map