UNPKG

@biothings-explorer/query_graph_handler

Version:
18 lines (15 loc) 319 B
exports.toArray = (input) => { if (Array.isArray(input)) { return input; } return [input]; }; exports.getUnique = (input) => { return Array.from(new Set(input)); }; exports.removeBioLinkPrefix = (input) => { if (input && input.startsWith('biolink:')) { return input.slice(8); } return input; };