I need to shorten my functions (I use them a lot, if i shorten them probably my app needs less storage)
For Example I have navigator.notification.confirm
it is a function. I call it like this : navigator.notification.confirm(a, b, c, [d, e, f, ...])
I want to shorten it as : confirm(a, b, c, [d, e, f, ...])
I used var confirm = navigator.notification.confirm
but it doesn't work :(
I can use function confirm(a, b, c, d) { navigator.notification.confirm(a, b, c, d) }
but isn't there any shorter way ?