I know this is a pretty short question, but I was just wondering if we can short this:
cn.link.split('/')[cn.link.split('/').length - 1]
To this:
cn.link.split('/')[this.length - 1]
or something like this where this
can be replaced by something to make this work.
NOTE:- cn
is an object.