How to use fuse.js

Comprehensive fuse.js code examples:

How to use fuse.js.default:

2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
if (initial) {
  initialId = (choiceObjs || []).map((x) => x && x.value ? x.value : x).indexOf(initial);
  if (initialId < 0)
    initialId = typeof initial === "string" ? initial : 0;
}
const fuzzy = new import_fuse.default(choiceObjs, {
  includeScore: false,
  keys: ["title", "value"]
});
response = await (0, import_prompts.default)(