MCPcopy Create free account
hub / github.com/MALSync/MALSync / removeOptionKey

Function removeOptionKey

src/utils/quicklinksBuilder.ts:235–241  ·  view source on GitHub ↗
(options, key)

Source from the content-addressed store, hash-verified

233}
234
235export function removeOptionKey(options, key) {
236 if (!key) return options;
237 return options.filter(el => {
238 if (!el || el === key || (typeof el === 'object' && el.name === key)) return false;
239 return true;
240 });
241}
242
243export function removeFromOptions(key) {
244 const options = api.settings.get('quicklinks');

Callers 1

removeFromOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected