How to override a javascript file?

How can I override a By default javascript file apart from custom client scripts?

Note : In my case I want some changes in “apps\frappe\frappe\public\js\frappe\views\workspace\workspace.js”
We have various functions specified in workspace.js which cannot be changed via client scripts so any alternative methods for specific javascript files?

ERPNext: v14.x.x-develop () (develop)
Frappe Framework: v15.x.x-develop () (develop)

please read this post

Thank You!

It is not working, can you guide me how to change workspace.js
[ “apps\frappe\frappe\public\js\frappe\views\workspace\workspace.js”] file from externally through overriding method in

"Override JS File doctype_js = {“doctype” : “public/js/doctype.js”} "