mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 15:21:54 +00:00
12 lines
238 B
JavaScript
12 lines
238 B
JavaScript
'use strict';
|
|
|
|
class SearchSuggestionItem {
|
|
static parse(data, bold_text) {
|
|
return data.map((item) => ({
|
|
text: item.trim(),
|
|
bold_text: bold_text.trim().toLowerCase()
|
|
}));
|
|
}
|
|
}
|
|
|
|
module.exports = SearchSuggestionItem; |