[unknown] I suppose you could just do
LibraryName.functionName = function(){//code here}
But why would you want to change the function? It generally isn’t good practice for libraries or for any code really. It might just be better to use parameters and have a bit more code than to completely change it - or, just make an entirely different function. Much simpler